Skip to content

Instantly share code, notes, and snippets.

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 domgetter/984365bcb8d5ab15034bc04189aad558 to your computer and use it in GitHub Desktop.
Save domgetter/984365bcb8d5ab15034bc04189aad558 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(" ")
read_in.each do |word|
cyphertext = encrypt(word, 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