method
encode64
v1_8_7_72 -
Show latest stable
- Class:
Base64
encode64(bin)public
Returns the Base64-encoded version of str.
require 'base64' Base64.b64encode("Now is the time for all good coders\nto learn Ruby")
Generates:
Tm93IGlzIHRoZSB0aW1lIGZvciBhbGwgZ29vZCBjb2RlcnMKdG8gbGVhcm4g UnVieQ==
1Note
test
I need that program :)