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?
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
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.
thank you so much man
good explanation thanks for sharing
Glad you liked it
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?
How would we encrypt/decrypt the private and public key that encrypts/decrypts the text?
Can you do one for one-time-pad
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
ever get your answer? kind of at the same place. would really be helpful. will owe you for years to come
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.
how we generate a public and private using elliptic curve cryptography in pycharm
Thanks for tutorial. Could you make a video signing file like pdf with python using USB tokens? Thanks
That sounds interesting. Did you do it?
Interesting.
Add hackingking601 on Instagram or on WhatsApp +1 385-440-0905 to get Private keys to your Bitcoin wallet