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 600 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:

For example, 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>
SWREG offers a paypal alternative, affordable ecommerce, payment processing, ecommerce solution, and an online software store with the ability to sell shareware.