2
내가 (WHO 않을 것) 암호로 내 RSA 개인 키를 보호하려는 실패하지만, 다음과 같은 C#을 실패간단한 사용
SecureString pw = new SecureString();
pw.AppendChar('x');
CspParameters prms = new CspParameters();
prms.KeyPassword = pw;
RSACryptoServiceProvider crypto = new RSACryptoServiceProvider(prms);
byte[] encrypted = crypto.Encrypt(Encoding.ASCII.GetBytes("encryptme"), true);
을 ... CryptographicException로 : "잘못된 유형 지정 ". KeyPassword 할당을 꺼내면 제대로 작동합니다.
내가 뭘 잘못하고 있니?