# create a key with the modulus and exponent When I have tried to create code in Python, I get an error that the string is too long. From what I have read, this is really digital signing and not encryption, but I need to decode the string and not just confirm that the string has been encoded with that certificate. Påryptodome seems to specifically prevent decoding with a public key. This protects a payload of up to 116 bytes, or 928Bits, creating a 128 byte or 1024Bit encrypted output. The data is encrypted using the private key, using 1024Bit RSA PKCS#1v1.5. I have a public certificate in X509 PEM format and can extract the modulus and exponent from that. I understand this is done to ensure that only those people with the private key can create this string (that is then added to a 2D barcode). I have a 128 byte string (in hex) that is encoded with a private key.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |