C# Keywords RSA Cryptography (Public/Private Key Encryption)

Поделиться
HTML-код
  • Опубликовано: 18 ноя 2024

Комментарии • 37

  • @jeremysargent5037
    @jeremysargent5037 4 года назад +1

    Nice video. Just what I needed and straight to the point. No messing around, good one!

  • @urosaksentijevic
    @urosaksentijevic 5 лет назад +3

    How can I convert rsa key in string to RSAParameters

  • @odevperovano
    @odevperovano 3 года назад +1

    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" :(

  • @justinwheetley
    @justinwheetley 2 года назад +1

    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?

    • @hacked101
      @hacked101  2 года назад +1

      Will look into that shortly

  • @marior.14
    @marior.14 2 года назад

    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.

  • @hykh6459
    @hykh6459 2 года назад

    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

  • @berkslv
    @berkslv 4 года назад

    Very good topic. Thank you,

  • @DerEinzigeNimmerland
    @DerEinzigeNimmerland 5 лет назад

    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?

    • @DerEinzigeNimmerland
      @DerEinzigeNimmerland 5 лет назад

      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.

  • @hussainismail162
    @hussainismail162 4 года назад

    byte[] bytes = rSACryptoServiceProvider.Decrypt(rgb, true); give me Error occurred while decoding OAEP padding.

  • @pushpendraupadhyay7960
    @pushpendraupadhyay7960 3 года назад +1

    If we have already public key then how to use it to encrypt? Please help me.

    • @hacked101
      @hacked101  3 года назад

      Please watch the video carefully

    • @pushpendraupadhyay7960
      @pushpendraupadhyay7960 3 года назад

      @@hacked101 From where it is exporting public key

    • @odevperovano
      @odevperovano 3 года назад

      @Pushpendra Upadhyay Did you manage to do that ? I have a public key, and need to use this key to encrypt :(

  • @Torterra_ghahhyhiHd
    @Torterra_ghahhyhiHd 4 года назад

    what is the main idea of public class putting a lot of private stuff ;U..!!?

  • @IRTPL
    @IRTPL 3 года назад

    how to take from public key pem ssl certificate file

  • @viswanathareddykethireddy2131
    @viswanathareddykethireddy2131 4 года назад

    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.

    • @hacked101
      @hacked101  4 года назад

      Is generated from the class provided, both the public and private keys

  • @niteshmalani3742
    @niteshmalani3742 5 лет назад

    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

  • @harshalinikam5589
    @harshalinikam5589 3 года назад

    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

    • @hacked101
      @hacked101  3 года назад +1

      Will look into that thanks

  • @anveshteachings9619
    @anveshteachings9619 4 года назад

    RSA is equal to RS256 ???????????? algorithm if not could u make on e video on it

  • @rsznbffgrfgwer296
    @rsznbffgrfgwer296 4 года назад +1

    Source Code?

  • @sharusonuindia
    @sharusonuindia 4 года назад

    How can Adding padding pkcs1 to it

    • @jayan4657
      @jayan4657 4 года назад

      hi @sharath did you fine any solution ECB/Pkcs1/padding ?

  • @chetsadachaiprasop4937
    @chetsadachaiprasop4937 4 года назад

    i think when privatekey encrypt data, can use publickey can decrypt data this it true?

    • @hacked101
      @hacked101  4 года назад

      Yes, this is mostly to ensure data integrity

    • @chetsadachaiprasop4937
      @chetsadachaiprasop4937 4 года назад

      @@hacked101 this not work. when i try use private key to encrypt and then use public key to decrypt it exception. what wrong

    • @hacked101
      @hacked101  3 года назад

      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

  • @zhaijun2002
    @zhaijun2002 5 лет назад

    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.

    • @RedOkamiDev
      @RedOkamiDev 5 лет назад

      You use both actually, here is the proof:
      crypto.stackexchange.com/questions/2884/rsa-proof-of-correctness

    • @niewazneniewazne1890
      @niewazneniewazne1890 4 года назад +1

      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).