Skip to content

Instantly share code, notes, and snippets.

Created May 31, 2016 06:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/cd8ce0dfe3f2d908f7955bced537998f to your computer and use it in GitHub Desktop.
Save anonymous/cd8ce0dfe3f2d908f7955bced537998f to your computer and use it in GitHub Desktop.
File.open('Ruby_Plaintext.txt', 'r') do |text|
plaintext = test.read.split(" ")
print plaintext
end
#Goal: To read in each byte, delete the succeeding space, and encrypt that byte. Save that byte to another file
#and read in another byte until the end of Ruby_plaintext.txt is found.
#Ruby_Plaintext.txt contents: 01010111 01100101 01101100 01101100 00100000 01101000 01100101 01101100 01101100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment