S-DES Binary converted to ASCII? I have been working with the following SDES Encryption templates and got the following as my ciphertext. I believe the ciphertext is correct because when I decrypted it I got my original plaintext.



If someone could inform me if the "encoded binary value is the ciphertext, and how do you convert this back to ASCII using the binary - ASCII table below?



Based on my results, I now have to answer the following questions, which I have answered in bold.

Plaintext binary value of e: 01100101

THE SUBKEYS WERE GENERATED USING THE KEY: 0101010110

Key 1:10011001

Key 2: 01101010

Encoded Binary Value: 11000001 (Is this regarded as the ciphertext?)

Finally convert, the encoded binary value back to ASCII: ? (Could someone please explain how this is done?)
Encoded Binary Value: 11000001 (Is this regarded as the ciphertext?)


Yes. Or at least it is considered a block of ciphertext, as in, the output of a block cipher. A block cipher in itself is not a CPA secure cipher, as identical input messages (plaintext) will lead to identical output.


  Finally convert, the encoded binary value back to ASCII: ? (Could someone please explain how this is done?)


You look up 0110 on the top row listing the high order bits, and then lookup 0101 in the low order bits, so you'll find the lower case e again. Of course most computer languages have functions such as CHR$ to do this for you.