Method: Base64.strict_decode64
- Defined in:
- lib/base64.rb
.strict_decode64(str) ⇒ Object
Returns the Base64-decoded version of str. This method complies with RFC 4648. ArgumentError is raised if str is incorrectly padded or contains non-alphabet characters. Note that CR or LF are also rejected.
73 74 75 |
# File 'lib/base64.rb', line 73 def strict_decode64(str) str.unpack1("m0") end |