Hello All.
We'd like to use Keyczar's Python bindings to encrypt small messages. Using the code below, we get ciphertext output of 261 bytes.
-------------------------------------------------------
import keyczar
encrypter = keyczar.Encrypter.Read(RSA_PUBKEY_PATH)
encrypter.set_encoding(encrypter.NO_ENCODING)
ciphertext = encrypter.Encrypt(PLAINTEXT)
-------------------------------------------------------
Are there any options available for reducing the size of the ciphertext output?
We'd like to reduce it to 256 bytes if possible - that's convenient for our message transport protocol.
It seems that the 261 byte output we're seeing is 256 bytes plus a 5 byte header:
1 byte for the Keyczar version
4 bytes of key hash
Thanks for your help,
-Tyler
Further discussion on this topic here: