My problem is that with UWP-Apps I can not use RSACryptoServiceProvider
. That means I have to use CryptographicEngine
to en/decrypt data. How can I Import my Public/Private Key to AsymmetricKeyAlgorithmProvider
's ImportKeyPair
-Method? How do I have to create the IBuffer parameter? I have two Pem or alternatively xml files, one for Private and one for Public key, which I want to use for en/decryption. They are externally created.
I already found a Solution with Chilkat's Rsa
Class. But this is no freeware unfortunately. Alternatives?
Thanks!
In server, you still could use the general RSACryptoServiceProvider to return publickey and privatekey.
In UWP apps, you could use AsymmetricKeyAlgorithmProvider to encrypt and decrypt data.