`
836811384
  • 浏览: 548902 次
文章分类
社区版块
存档分类
最新评论

Flex中Des加密解密

 
阅读更多

AS3中Des加密解密

懒骨头(http://blog.csdn.com/iamlazybone

1

as3crypto:一个as3的关于加解密的开源项目

http://code.google.com/p/as3crypto/

2

myKeyStr="123456";

myKey=new ByteArray();

myKey.writeUTFBytes(myKeyStr);

myDes=new DESKey(myKey);

3

tmpByteArray=convertStringToByteArray(txt1.text);

myDes.encrypt(tmpByteArray, 0);

txt2.text=convertByteArrayToString(tmpByteArray);

myDes.decrypt(tmpByteArray, 0);

txt3.text=convertByteArrayToString(tmpByteArray);

4

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics