observe the following
signature = rsa.sign(str(message), private_key, 'SHA-1')
see how message is being casti to a str
would that decode a bit wise string?
why I ask.
the code snippet above is being used by the aws boto library which is using the rsa libary and I keep getting an error from the rsa library
File "/Users/bullshit/Documents/softwareprojects/shofi/backend/virtualshofi/lib/python3.8/site-packages/boto/cloudfront/distribution.py", line 677, in _sign_string
signature = rsa.sign(str(message), private_key, 'SHA-1')
File "/Users/bullshit/Documents/softwareprojects/shofi/backend/virtualshofi/lib/python3.8/site-packages/rsa/pkcs1.py", line 337, in sign
msg_hash = compute_hash(message, hash_method)
File "/Users/bullshit/Documents/softwareprojects/shofi/backend/virtualshofi/lib/python3.8/site-packages/rsa/pkcs1.py", line 439, in compute_hash
assert hasattr(message, "read") and hasattr(message.read, "__call__")
AssertionError
The error is not important to the context of my question but its good for grounding. The reason why I am asking is also out of context
Thank you