Packagesekati.crypt
Classpublic final class XOR
ImplementsICipher

Encrypt and Decrypt a string with XORCRYPT Version 1.2 algorithm

See also

http://www.eng.uwaterloo.ca/~ejones/software/xorcrypt12.js


Public Methods
 MethodDefined by
  
XOR()
XOR Static Constructor
XOR
  
decrypt(input:String, password:String):String
[static] Decrypts a string with the specified key.
XOR
  
encrypt(input:String, password:String):String
[static] Encrypts a string with the specified key (linefeeds are stripped but replaced upon decryption).
XOR
Constructor detail
XOR()constructor
public function XOR()

XOR Static Constructor

Method detail
decrypt()method
public static function decrypt(input:String, password:String):String

Decrypts a string with the specified key.

Parameters
input:String — string to decrypt
 
password:String — decryption key

Returns
String

Example
   var dec:String = XOR.decrypt (enc,"tooManySecrets");
   

encrypt()method 
public static function encrypt(input:String, password:String):String

Encrypts a string with the specified key (linefeeds are stripped but replaced upon decryption).

Parameters
input:String — string to encrypt
 
password:String — encryption key

Returns
String

Example
   var enc:String = XOR.encrypt ("hello world","tooManySecrets");