What if I already have a public key ? where to put it ? I have a public key and I need to encrypt a password using this public key using "RSA/ECB/PKCS1Padding" :(
Gracias por el video doc, una consulta... a mi me aparece un error "No se encontró el archivo especificado al momento de utilizar la función .decrypt("valor ejemplo",false)". Me puedes ayudar con ese error por favor? Slds.
Hey, thanks for the Video, helped me with my project. Now i've got a question - why do you instanciate a new RSACryptoServiceProvider in your Encrypt method? Since you've already created a static Property CSP i think you dont need a new Object, it doesnt add anything to your program, or am i missing something?
Also you shouldnt need to use the ImportParamenters method to get your public/private key inside your Encrypt/Decrypt methods, since the Properties are declared in your RSAEncrypt Class. It works fine for me without importing the keys.
But where are we reading public or private key from certificate? How it's generated these two if we don't get from external certificate? Please help me.
Encryption with the private key is used to prove authenticity. If person 1 encrypts a message with their own private key then person 2 can decrypt it with person 1's public key, which proves that person 1 originated the message since it could only have been encrypted with their private key. Will make a video on that shortly
May I ask why you encrypt with your own public key? for encryption, you use other people public key or your own private key. correct me if I was wrong. Thanks.
Basically: 1. We want public key to hide our message and make it readable only by the receiver, sender knows his message so we don't need to know it mid transfer either. 2. We want him to verify that the data comes from us so we give him our public key. Basically public key: encrypt and verify; Private key: decrypt(encrypt too since we can get the public key from private key), sign(verify, same as before).
Nice video. Just what I needed and straight to the point. No messing around, good one!
How can I convert rsa key in string to RSAParameters
What if I already have a public key ? where to put it ? I have a public key and I need to encrypt a password using this public key using "RSA/ECB/PKCS1Padding" :(
Every time I run the app it generates a new key. I have my own keys that I generated that I want to use. Do you have video that shows that?
Will look into that shortly
Gracias por el video doc, una consulta... a mi me aparece un error "No se encontró el archivo especificado al momento de utilizar la función .decrypt("valor ejemplo",false)". Me puedes ayudar con ese error por favor? Slds.
How can I use decrypt without encrypted first, because when I copy text encrypted and restart app and paste and then decrypt but I got error
Very good topic. Thank you,
You are welcome
Hey, thanks for the Video, helped me with my project.
Now i've got a question - why do you instanciate a new RSACryptoServiceProvider in your Encrypt method?
Since you've already created a static Property CSP i think you dont need a new Object, it doesnt add anything to your program, or am i missing something?
Also you shouldnt need to use the ImportParamenters method to get your public/private key inside your Encrypt/Decrypt methods, since the Properties are declared in your RSAEncrypt Class. It works fine for me without importing the keys.
byte[] bytes = rSACryptoServiceProvider.Decrypt(rgb, true); give me Error occurred while decoding OAEP padding.
If we have already public key then how to use it to encrypt? Please help me.
Please watch the video carefully
@@hacked101 From where it is exporting public key
@Pushpendra Upadhyay Did you manage to do that ? I have a public key, and need to use this key to encrypt :(
what is the main idea of public class putting a lot of private stuff ;U..!!?
how to take from public key pem ssl certificate file
But where are we reading public or private key from certificate? How it's generated these two if we don't get from external certificate? Please help me.
Is generated from the class provided, both the public and private keys
Dear sir I have Ex4 encrypted file so can you tech me how to find key and how to change key ? How to compile it ? I must pay for it
Nice video... You can help me in my project.. Android text encryption with various algorithms.. That was project topic.. Can you send code for that
Will look into that thanks
RSA is equal to RS256 ???????????? algorithm if not could u make on e video on it
Source Code?
How can Adding padding pkcs1 to it
hi @sharath did you fine any solution ECB/Pkcs1/padding ?
i think when privatekey encrypt data, can use publickey can decrypt data this it true?
Yes, this is mostly to ensure data integrity
@@hacked101 this not work. when i try use private key to encrypt and then use public key to decrypt it exception. what wrong
Encryption with the private key is used to prove authenticity. If person 1 encrypts a message with their own private key then person 2 can decrypt it with person 1's public key, which proves that person 1 originated the message since it could only have been encrypted with their private key.
Will make a video on that shortly
May I ask why you encrypt with your own public key? for encryption, you use other people public key or your own private key. correct me if I was wrong. Thanks.
You use both actually, here is the proof:
crypto.stackexchange.com/questions/2884/rsa-proof-of-correctness
Basically: 1. We want public key to hide our message and make it readable only by the receiver, sender knows his message so we don't need to know it mid transfer either. 2. We want him to verify that the data comes from us so we give him our public key. Basically public key: encrypt and verify; Private key: decrypt(encrypt too since we can get the public key from private key), sign(verify, same as before).