Array#pack("m*") is your friend. So is String#unpack("m*"). You can use them instead of the Base64 methods encode64 and decode64. Hat tip to Rack's authentication example.
Subscribe to:
Post Comments (Atom)
You'll see how very reasonable the price is, when you consider that you can put an electrofriend in your ear, where it will whisper good advice and supply you with all kinds of information.
Array#pack("m*") is your friend. So is String#unpack("m*"). You can use them instead of the Base64 methods encode64 and decode64. Hat tip to Rack's authentication example.
Labels: ruby
0 comments:
Post a Comment