반응형 RSACryptoServiceProvider1 RSACryptoServiceProvider 암호화 RSACryptoServiceProvider 암호화 public static string Encrypt(this string target, string key) { if (string.IsNullOrEmpty(target)) throw new ArgumentException("target null"); if (string.IsNullOrEmpty(key)) throw new ArgumentException("key null"); return BitConverter.ToString( new RSACryptoServiceProvider( new CspParameters() { KeyContainerName = key }) { PersistKeyInCsp = true }.Encrypt(Encoding.UTF8.. 2016. 1. 8. 이전 1 다음 반응형