Skip to content

Instantly share code, notes, and snippets.

@skout23
Created June 16, 2014 16:34
Show Gist options
  • Save skout23/f941fdf14cefe15d312d to your computer and use it in GitHub Desktop.
Save skout23/f941fdf14cefe15d312d to your computer and use it in GitHub Desktop.
silly base64decode(rot13()) for when I post bday stuff on friends fb
#!/usr/bin/env ruby
# silly base64decode(rot13())
require 'base64'
string = "VW5jY2wgT3ZlZ3VxbmwgTnkh"
plain = Base64.decode64(string).to_s.tr 'A-Za-z','N-ZA-Mn-za-m'
puts plain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment