Score:1

I need a simple cryptographic code to put on a t-shirt

cn flag

I never worked with cryptography but I wanted to add an easter egg on the design I'm making for a t-shirt. I need it to have a key that will be embroided on the front design wich is:

15122017

that can be used to decrypt the text that is in the back (still have to think what to put). I tried testing the encryption on Cryptii.com with the rc4 encryption and it worked well both ways but when I tried decoding that same result of the previous site on dcode.fr it didn't worked. I liked the way hexadecimal result looked but to be honest I'm really lost on how to make this work for every decoding website.

Paul Uszak avatar
cn flag
Important: do you want something crypto clever, or simple for the good folks of the earth?
Score:2
dz flag

The problem is that dcode.fr expects the key to be ASCII ("SECRET"), while Cryptii.com expect hexadecimal (53 45 43 52 45 54). So in effect when you put the hex to both sites, dcode.fr interprets it as the ASCII string, not hex. If you convert the key from ASCII to/from hex, you can encrypt on one site and decrypt on the other. Also, some other sites display the encrypted message in base64 instead of hex.

As an example, the following sequence works:

  1. In dcode.fr, type the message "This is a test!" and key "SECRET". After encrypting, you will get the hex output "C8 06 05 0C 2F 49 50 E8 83 46 C8 D6 12 76 C4".
  2. Going to Cryptii.com, switch to a hex message and paste in "C8 06 05 0C 2F 49 50 E8 83 46 C8 D6 12 76 C4" and key "53 45 43 52 45 54" and it will decode to "This is a test!"

Unfortunately this means that unless your target audience understands how and when to do this sort of conversion, "work for every decoding website" isn't going to be feasible. I suspect you will have to choose one site, create your shirt appropriately, and somehow let your audience know the URL of the chosen site.

Richie Frame avatar
cn flag
or the key can be an obvious hex string containing the code (date?), such as 0x0015122017
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.