Skip to content

Instantly share code, notes, and snippets.

@zigen
Created September 15, 2015 11:23
Show Gist options
  • Save zigen/f0da20b6c4b719bac8ec to your computer and use it in GitHub Desktop.
Save zigen/f0da20b6c4b719bac8ec to your computer and use it in GitHub Desktop.
def encrypt str, key
for i in 0..str.length-1
print (str[i].ord + key), " "
end
end
for i in 0..25
encrypt "Hello",i
print "\n"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment