Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. createRandomKeySet - function([keylength:number]):keygen; Creates the key generator from two random prime numbers (optionally with given key length)
  2. createKeySet - function(num1:number, num2:number):keygen; Creates the key generator from the two given prime numbers
  3. encrypt - function(message:string, publicKey:table):string; Encrypts the specified message using the specified public RSA key
  4. decrypt - function(message:string, privateKey:table):string; Decrypts the specified message using the specified RSA key