Use Array#pack and String#unpack instead of Base64

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.

0 comments: