Flex中Des加密解密
发布时间:2020-12-15 01:40:35 所属栏目:百科 来源:网络整理
导读: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
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
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |