+ 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?

30th Aug 2021, 1:18 PM
Yahel
Yahel - avatar
4 Respuestas
+ 2
HBhZ_C what are you talking about sir?
30th Aug 2021, 7:47 PM
Yahel
Yahel - avatar
+ 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.
30th Aug 2021, 4:26 PM
HBhZ_C
HBhZ_C - avatar
+ 1
Sorry I didn't understand your question well.
31st Aug 2021, 8:59 AM
HBhZ_C
HBhZ_C - avatar