C#과 PHP에서 같은 암호화/복호화 사용하기
1. C# 암호화 함수 public string EncryptString(string plainText, string password) { SHA256 mySHA256 = SHA256Managed.Create(); byte[] key = mySHA256.ComputeHash(Encoding.ASCII.GetBytes(password)); byte[] iv = new byte[16] { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 }; // Instantiate a new Aes object to perform string symmetric encryption Aes encryptor = Aes.Create()..
2019. 3. 28.