/ Published in: ActionScript 3
I found this awesome class online and thought I should share it. It's a really nice, lightweight way to encrypt data out of ActionScript. Here's how to use it:
import com.utils.sha1Encrypt;
var enc:sha1Encrypt = new sha1Encrypt(true);
function sha1():void { trace(sha1Encrypt.encrypt("hello")); };
import com.utils.sha1Encrypt;
var enc:sha1Encrypt = new sha1Encrypt(true);
function sha1():void { trace(sha1Encrypt.encrypt("hello")); };
URL: http://www.erikhallander.com/blog/2008/lightweight-sha1-encryption-class-for-actionscript-3.html