hello, i get Message=Unable to cast object of type 'Org.BouncyCastle.Crypto.Parameters.RsaPrivateCrtKeyParameters' to type 'Org.BouncyCastle.Crypto.AsymmetricCipherKeyPair'. kindly help
'Bad length' exception thrown when encrypting larger text. This cud b the limitation of RSA. Pls suggest any alternative approach. Also make a video on how to encrypt JSON/serialized data.
How can you make it independent of the private key at the server end? Is it possible to generate a private key at every user end as soon as the user opens the chat window at his end so that it behaves like end to end encryption?
Hi, before all, thanks for sharing. I guess this method works cross-platform for RSA asymmetric encryption/decryption right??. I heard some issues against some SPC for Windows against Linux ... Thanks .
Also , for instance if I use in the helper RSA instead RSACryptoServiceProvider through RSA csp = RSA.Create(rsaParams); and then for encrypt / decrypt using the code below : RSAEncryptionPadding oaepsha256 = RSAEncryptionPadding.OaepSHA256; var encryptedBytes = _publicKey.Encrypt(Encoding.UTF8.GetBytes(text), oaepsha256); Do you think this approach would cause less issues if we need to support multiplatform (Linux-Windows).... Cheers!
Thanks, you saved me!
Thanks alot you saved me
Thanks i was stuck in the Decryption and this really helpted me
Same here. He is a life saver.
you said you used the public key for encryption and the private key for decryption. But you mean the other way around right? :)
It's the correct sequence
Public key is exposed so it's only used for encryption but until you have the private key you can't read the plain text.
hello, i get Message=Unable to cast object of type 'Org.BouncyCastle.Crypto.Parameters.RsaPrivateCrtKeyParameters' to type 'Org.BouncyCastle.Crypto.AsymmetricCipherKeyPair'.
kindly help
Hi.. getting the same error, where you able to get a fix for this?.. thank you
Hello, thanks for your contribution. Question, can the key be used directly as a string and not as a .pem file?
What can you do when you are getting an error that says "Bad Length" at the point of encrypting?
good tuto, why did not share full code of the project ?
Can you share the steps of creating private and public key using open SSL
I have already shared a videos, please check the playlist
'Bad length' exception thrown when encrypting larger text. This cud b the limitation of RSA. Pls suggest any alternative approach. Also make a video on how to encrypt JSON/serialized data.
can you tell me how to store the string in the public key variable and use the key to decrypt/encrypt the text
How can you make it independent of the private key at the server end? Is it possible to generate a private key at every user end as soon as the user opens the chat window at his end so that it behaves like end to end encryption?
can you make a video on creating a JWT Token using RSA Public/Private Keys
What is EnctyptionResponse
when you going to post your next video on client side cryptography, im waiting for it.
Video is not available - ruclips.net/video/rH_fZ4Zkxic/видео.html
will it work on other OS? Or it is just for windows?
can I use public key for decryption?
No
Sir
what does the script EncryptionResponse.cs contain ?
Where is the ".pem" came from ?
Generated using openssl
ruclips.net/video/iHb3nFtzFoc/видео.html
Hi, before all, thanks for sharing. I guess this method works cross-platform for RSA asymmetric encryption/decryption right??. I heard some issues against some SPC for Windows against Linux ... Thanks .
Also , for instance if I use in the helper RSA instead RSACryptoServiceProvider through
RSA csp = RSA.Create(rsaParams); and then for encrypt / decrypt using the code below :
RSAEncryptionPadding oaepsha256 = RSAEncryptionPadding.OaepSHA256;
var encryptedBytes = _publicKey.Encrypt(Encoding.UTF8.GetBytes(text), oaepsha256);
Do you think this approach would cause less issues if we need to support multiplatform (Linux-Windows)....
Cheers!