at my views.py i have the following line
encrypted_token_message = encryption_key.encrypt(PGPMessage.new(token_message), cipher=SymmetricKeyAlgorithm.AES256)
which creates a PGP message with a version information like this
-----BEGIN PGP MESSAGE-----
Version: XYZ
How can i remove/replace this version line?
if i try:
encrypted_token_message_pretty = (encrypted_token_message.replace('Version: XYZ', 'Version: XXX'))
i get back:
'PGPMessage' object has no attribute 'replace'
Thanks and regards
encrypted_token_message_prettyand then perform replace operation on it.