Packagesekati.crypt
Classpublic final class TEA
ImplementsICipher

Encrypts and decrypts string with the TEA (Block) algorithm.

See also

http://en.wikipedia.org/wiki/Tiny_Encryption_Algorithm


Public Methods
 MethodDefined by
  
TEA()
TEA Static Constructor
TEA
  
decrypt(src:String, key:String):String
[static] Decrypts a string with the specified key.
TEA
  
encrypt(src:String, key:String):String
[static] Encrypts a string with the specified key.
TEA
Constructor detail
TEA()constructor
public function TEA()

TEA Static Constructor

Method detail
decrypt()method
public static function decrypt(src:String, key:String):String

Decrypts a string with the specified key.

Parameters
src:String — string to decrypt
 
key:String — decryption key

Returns
String
encrypt()method 
public static function encrypt(src:String, key:String):String

Encrypts a string with the specified key.

Parameters
src:String — string to encrypt
 
key:String — encryption key

Returns
String