Skip to content

Instantly share code, notes, and snippets.

@modeverv
Created July 10, 2018 09:03
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save modeverv/7d0665765907c3cbdac72b66ac9c0f8d to your computer and use it in GitHub Desktop.
require 'base64'
if ARGV.size != 1
puts "usage: ruby base64decode.rb <file of base64>"
exit(1)
end
base64string = IO.read(ARGV[0])
puts Base64.decode64(base64string)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment