Home > Services > Keygen > Sending Keys

Sending Keys

This page will show what you should be sending back as output from a key generator program. You should be returning an ASCII text string which will be sent to the customer. Optionally you can return a binary which will also be forwarded to the user as an attachment - please note that there is a file size limit of 250k and a supplementary bandwidth charge of 2 cents per 100k

ASCII Key String

An ASCII key string must always be returned by your key generator. Enclose the key in <SOFTSHOP></SOFTSHOP> tags.

E.g. To return key 123456

<SOFTSHOP>123456</SOFTSHOP>

Binary Keys

You can optionally supply a binary to be forwarded as an attachment to the end user with your ASCII key. To do this you must supply 4 pieces of information :-

  1. Filename :This will be the filename of the resulting data
  2. Mime Type :This is what the data actually represents when it is decoded
  3. Encoding :This is how the data is encoded when it is sent
  4. Data :This is the actual data being sent

E.g. To send a .jpg image to a customer with your key

<SOFTSHOP>123456</SOFTSHOP>
<BINARY>
<FILENAME>logo.jpg</FILENAME>
<MIME_TYPE>image/jpeg</MIME_TYPE>
<ENCODING>base64</ENCODING>
<DATA>
/9j/4AAQSkZJSgABAgAAZABkAHD/HHARRHVja3kAAQAEAHAAJQAA/+4AIHFkb2JlAGTAAAHAAQMA
....(Rest of the base64 data)
/9j/4AAQSkZJSgABAgAAZABkAHD/HHARRHVja3kAAQAEAHAAJQAA/+4AIHFkb2JlAGTAAAHAAQMA
</DATA>
</BINARY>