I am just making a simple sign in agent that creates an account and locks it using the gnupg module. Unfortunately, I get this error TypeError: a bytes-like object is required, not 'str
. I have tried all sorts of different ways to convert my password into bytes but nothing seems to work.
Here is the line that is breaking
private_export = self.gpg.export_keys(key, secret=True, passphrase=self.password)
Help would be appreciated!