• actionscript AES 加密 解密 拂晓风起


    本文只是翻译整理,转载~~为了方便一些初学者朋友们~~

    感谢原作者:http://code.google.com/p/lostinactionscript/

    使用以下这个简单封装的加密类~~~当然,需要先下载附件:crypto.rar

    直接解压放到工程目录,就可以调用啦~~简单方便,做表单加密不错~~

    package crypto
    {
    	import com.hurlant.crypto.Crypto;
    	import com.hurlant.crypto.symmetric.AESKey;
    	import com.hurlant.util.Hex;
    	
    	import flash.utils.ByteArray;
    
    	public class KCrypto
    	{
    		private static const SECRET_KEY:String = "suibian";
    		
    		public function KCrypto()
    		{
    		}
    		
    		public static function encryptByAES(plainText:String):String
    		{
    			return AES.encrypt(plainText, SECRET_KEY, AES.BIT_KEY_128);
    		}
    		public static function decryptByAES(encryptedText:String):String
    		{
    			return AES.decrypt(encryptedText, SECRET_KEY, AES.BIT_KEY_128);
    		}
    		
    		
    		
    	}
    }
    
  • 相关阅读:
    Unable to load dbxmss.dll (ErrorCode 16). It may be missing from the system Path
    同一网内机器无法连通解决一例
    Day.24
    Day.24
    Day.23
    Day.22
    Day.23
    Day.21
    Day.22
    Day.01-Day.20
  • 原文地址:https://www.cnblogs.com/kenkofox/p/2150424.html
Copyright © 2020-2023  润新知