+ 1
Encrypting in Python
I tried using the "pycryptodome" module and i got this error: "not a valid pem post boundary" i saw someone that wrote to use another module so i tried "cryptography" and it was too coplicated! now im trying the "rsa" module and there is no documentation and not many features. all i want is to be able to generate a private key, save it into a file, extract it from the file, be able to generate a public key from the private key, be able to convert it to str format and back to the key format and encrypt/decrypt using the keys. thats all i need. can someone help me?
4 odpowiedzi
+ 2
HBhZ_C what are you talking about sir?
+ 1
I think you need to create a database for the server program but because it is in a localhost network you can only use os module to open a file that contains list or dictionary of ligitimate clients then check if the client name/Id/name/ that send message to the server exists in the file then accept the connection.
+ 1
Sorry I didn't understand your question well.
0
Hopefully, this will help you:
https://stackoverflow.com/questions/4232389/signing-and-verifying-data-using-pycrypto-rsa#4232889