コード例 #1
0
ファイル: Crypter.cs プロジェクト: sandalkuilang/texto
        public string Decrypt(string data)
        {
            byte[] base64StringData; 
            base64StringData = Convert.FromBase64String(data);

            byte[] resultInByte = new byte[] { };

            SymmetricEncryption sym = new SymmetricEncryption(new System.Security.Cryptography.RijndaelManaged());
            sym.Key = privateKey.GetKey();
            resultInByte = sym.Decrypt(base64StringData);
            sym.Dispose();
            return ASCIIEncoding.ASCII.GetString(resultInByte); 
        }