Package | sekati.crypt |
Class | public final class XOR |
Implements | ICipher |
See also
Method | Defined 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 |
XOR | () | constructor |
public function XOR()
XOR Static Constructor
decrypt | () | method |
public static function decrypt(input:String, password:String):String
Decrypts a string with the specified key.
Parametersinput:String — string to decrypt
|
|
password:String — decryption key
|
String |
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).
Parametersinput:String — string to encrypt
|
|
password:String — encryption key
|
String |
var enc:String = XOR.encrypt ("hello world","tooManySecrets");