Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //the user enters what the program tells him or her respectively in hierarchy shown bellow
- Please enter your text:
- Please enter your key:
- 1 Encrypt plain text using binary and Or
- 2 Decrypt cipher text using binary and Or
- 0 Exit
- Please enter your menu selection -----------------
- // when the user enters say 1 or 2, the console displays as shown below. Otherwise exits when users enters 0
- You entered: //user enters a text which is a string
- Your key is: //user enters a key which is a string
- Your text in base 10 is: // base 10 value for each character of the text entered
- Your key in base 10 is: //base 10 value for each character of the key entered
- Your text in binary is: // binary for text
- Your key in binary is: //binary for key
- Your cipher text in plain text is //
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement