Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- The Input of "IOF ITGSE SM YC ISZYZTA LGA ANWOZUK RIX YB ZIRIZIYM NUN HC HP IICE SM YR IVEPOOZY" is: "THE WORLD IS MY COUNTRY ALL MANKIND ARE MY BRETHREN AND TO DO GOOD IS MY RELIGION"
- (NOTE: The following explanation of how the code works is not how I originally encoded for this challenge, I used a completely different method. After analyzing the code a bit more, coincidentally, it resembles a variation of the vigenere cipher. I used this explanation because I assumed the concept would be best understood that way, but if you wish to see the original way then just PM me.)
- I've studied Code #2 a little bit more after I made it and discovered a few things about it that will hopefully make it easier for you to understand.
- Code #2 & 3 are a lot less picky than Code #1.
- To understand Code #2, it'd be best if you already understood how the Vigenere Cipher works.
- There are 5 different groups of letters:
- 1: UCSD
- 2: QBVGLP
- 3: YJNRZT
- 4: AMFKWX
- 5: EIHO
- The reason why I chose for the letters to be in those specific groups/order is irrelevant now, so all you need to make note of is that for this code, the letters are in that arrangment.
- Now we just create a vigenere table with these letters:
- The first column will just be the regular alphabet in order, (A-Z), and the 2nd column will be next instance of that particular row/group.
- For example:
- 1st column up to 5 letters:
- 1
- A
- B
- C
- D
- E
- 1st & 2nd column up to 5 letters:
- 1 2
- A M
- B V
- C S
- D U
- E I
- Because:
- Row A is apart of this group: AMFKWX
- ROW B is apart of this group: QBVGLP
- ROW C is apart of this group: UCSD
- ROW D is apart of this group: UCSD
- ROW E is apart of this group: EIHO
- Meaning:
- Columns & Rows 1-5 would be:
- 1 2 3 4 5
- A M F K W
- B V G L P
- C S D U C
- D U S D U
- E I H O E
- You would do this for the 26 columns and 26 rows thus making a vigenere table using these letter configurations.
- So if we have an input of: TEST CODE
- We encode by finding (T)EST on the top row of the vigenere table and the T(E)ST on the Left most column and find the intersection between the two, which would be: O
- Continue to do this process until the last letter of the word:
- TEST = OST
- For the last letter, you find TES(T) on the top row and (T)EST on the left most column, which would be: Y
- Now continue this process for the rest of the input, TEST CODE, and it will leave you an output of: OSTY ICOC
- That's all there is to this code. :D
- Thanks for participating for Code #1! :D
- - DWC
Advertisement
Add Comment
Please, Sign In to add comment