Return BitConverter.ToInt32(memoryStream.ToArray(),0).ToString() Using (CryptoStream cryptoStream = new CryptoStream(memoryStream, encryptor, CryptoStreamMode.Write))ĬryptoStream.Write(plainText, 0, plainText.Length) Using (MemoryStream memoryStream = new MemoryStream()) Using (ICryptoTransform encryptor = rijndaelCipher.CreateEncryptor(SecretKey.GetBytes(32), SecretKey.GetBytes(16))) PasswordDeriveBytes SecretKey = new PasswordDeriveBytes(ENCRYPTION_KEY, SALT) RijndaelManaged rijndaelCipher = new RijndaelManaged() īyte plainText = (inputText) ![]() I wrote that: public static string Encrypt(string inputText,string ENCRYPTION_KEY)īyte SALT = (ENCRYPTION_()) I wonna do in that class, return int as output decoded string.Rijndael examples usualy is used byte64 as encoded string i dont wonna base64 output but number output(int). ![]() Hi i created Rijndael class to ecoding/decoding string.
0 Comments
Leave a Reply. |