* @return a String usable as an API key
* @throws SystemUnavailableException
*/
public static String generateAPIKey(String email) throws SystemUnavailableException{
// generate a nonce
RandomGUID r = new RandomGUID();
String nonce = "nonce-" + r.toString(); //$NON-NLS-1$
// now use SHA hash on the nonce
String hashKey = HashGenerator.getInstance().encrypt(nonce+email);
// get rid of any chars that might upset a url...