Search code examples
encryptionencryption-asymmetricpublic-key-encryption

Is there a 8 bit block sized Public-Private key encryption algorithm?


I checked out TripleDES. It's block size is of 64 bits.

Is there any algorithm for 8 bits block size?

Thanks

EDIT : I intend not to use this for perfect protection, but for a just-in-case situation where one who sees the code should not find the plaintext. So 8 bit is kinda okay for me.


Solution

  • RSA with 8-bit key :)

    Seriously though, the block-based cyphers are stateless - the ciphertext of a block depends only on the cleartext of the block, not on the previous blocks (otherwise it would be a stream cypher). A block cypher that acts on 8-bit blocks can be brute-forced easily, so there's no point.