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. The size limit is 250 bytes.

ASCII Key String

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

For example, to return key 123456

<SOFTSHOP>123456</SOFTSHOP>

Binary Keys

Optionally you can return a binary key which will be provided to the customer as a download link. Please note the file size limit for the binary key is 65,535 bytes. 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 (Max size is 65,535 bytes).

For exampe, to send a .jpg image to a customer with your key

<SOFTSHOP></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>