Private Key and Public Key Encryption and Decryption (Asymmetric Encryption) in Python

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

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

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

    thank you so much man

  • @saimneftci5004
    @saimneftci5004 6 лет назад +1

    good explanation thanks for sharing

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

    The open function at 1:22 how would we adjust that if there were different private keys available? If there were like private key 1-3 could we open with a statement without hardcoding the name?

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

    How would we encrypt/decrypt the private and public key that encrypts/decrypts the text?

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

    Can you do one for one-time-pad

  • @eidiazcas
    @eidiazcas 5 лет назад +1

    but what if I want to decrypt a string variable coming from somewhere else containing encrypted info and not a bytes variable. If I do bytesvar = mystring.encode() it returns a bytes var like b'encrypted content of mystring' but when I pass bytesvar to the decrypt function it throws ValueError: Ciphertext length must be equal to key size which really sucks

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

      ever get your answer? kind of at the same place. would really be helpful. will owe you for years to come

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

      I was also getting same erro when i was saving encoded string in .txt format.
      Try to save data in .enc file
      with open("encrypt_data.enc","wb") as text_file:
      text_file.write(ciphertext)
      text_file.close()
      then decrypt from .enc the code will run it will not give error.

  • @Alikhan-ee7bs
    @Alikhan-ee7bs 5 лет назад

    how we generate a public and private using elliptic curve cryptography in pycharm

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

    Thanks for tutorial. Could you make a video signing file like pdf with python using USB tokens? Thanks

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

      That sounds interesting. Did you do it?

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

    Interesting.

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

      Add hackingking601 on Instagram or on WhatsApp +1 385-440-0905 to get Private keys to your Bitcoin wallet