简体   繁体   中英

RSA/ECB/PKCS1PADDING encryption algorithm for windows phone 8.1 universal app?

What is RSA/ECB/PKCS1PADDING algorithm?
And I need to encrypt a string data using public key by RSA/ECB/PKCS1PADDING in windows phone 8.1 . How can i do that ? Any help is appreciated.

Thanks

EDIT:

After digging and searching on many sources. I found the solution from stack over flow itself. For that I used WinRT Ported version of Bouncy Castle.

C# RSA Decryption using Bouncy Castle

And I encrypted data successfully.

You need to use the Windows.Security.Cryptography.Core namespace.

AsymmetricKeyAlgorithmProvider provider=AsymmetricKeyAlgorithmProvider.OpenAlgorithm(AsymmetricAlgorithmNames.RsaPkcs1);

You can use this object to implement the algorithm. The example in below link can help. http://msdn.microsoft.com/en-us/library/windows/apps/windows.security.cryptography.core.asymmetrickeyalgorithmprovider.aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM