[![enter image description here]]
I want to encode a string whose length is more than default 60. Therefore, I can't use the Base64.encode64 method.
From the following link - http://ruby-doc.org/stdlib-1.8.7/libdoc/base64/rdoc/Base64.html
I got to know about b64encode(bin, len = 60) method. But on using, it shows the error -
in `<top (required)>': undefined method `b64encode' for Base64:Module (NoMethodError)