I have been looking for a proper data encryption library in python for a long while, today I needed it once again, cannot find anything, so is there any way to encrypt data using a user-set password, if I find something it's usually insecure, if I find a good solution it has no support for user-set passwords, meaning I'm stuck, any way to do it?
Here's some pseudocode:
import encryption
encryptor: encryption.Crypt = encryption.Crypt("my secret password")
encryptor.encrypt("hello this is my very secret string") # => 9oe gyu yp9q*(Y 28j
encryptor.decrypt("9oe gyu yp9q*(Y 28j") # => hello this is my very secret string
I don't care if it's an object, for all I care it can also be a function which accepts the password:
import encryption
encryption.encrypt("hello this is my very secret string", "my secret password") # => 9oe gyu yp9q*(Y 28j
encryption.decrypt("9oe gyu yp9q*(Y 28j", "my secret password") # => hello this is my very secret string
I don't mind the way it's encrypted or decrypted, I just want to have a way to do it :), I also don't care abt it's output, it can be binary, an object, a string, anything