Friday, July 24, 2009

base 64 enocde/decode

require 'base64'
puts Base64.decode64("aG1hYw==").chomp => hmac
puts Base64.encode64("hmac").chomp =>
aG1hYw==

No comments: