Class com.sekati.crypt.XOR

Implemented Interfaces

ICipher

Description

Encrypt and Decrypt a string with XORCRYPT Version 1.2 algorithm

Method Index

decrypt(), encrypt()

Method Detail

encrypt

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

Encrypts a string with the specified key.

Parameters

input(String) string to encrypt
password(String) encryption key

Return

String

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

decrypt

static public function decrypt(input:String, password:String):String

Decrypts a string with the specified key.

Parameters

input(String) string to decrypt
password(String) decryption key

Return

String

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