End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Base64#strict_decode64
strict_decode64(str)
lib/base64.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/base64.rb, line 73
def strict_decode64(str)
str.unpack1("m0")
end
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.