Skip to content

Instantly share code, notes, and snippets.

Created May 31, 2016 06:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/1c98d915f088dcdf58d566bafa424905 to your computer and use it in GitHub Desktop.
Save anonymous/1c98d915f088dcdf58d566bafa424905 to your computer and use it in GitHub Desktop.
if choice == "Encrypt"
File.open('Ruby_Plaintext.txt', 'r') do |text|
read_in = text.read.split(" ")
for i in 0...read_in.length
plaintext = read_in[i]
cyphertext = encrypt(plaintext, key)
print cyphertext + " "
end
end
passed = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment