Hi All,
Could anyone help me here to understand when we need to consider the
below 4 methods:
strict_decode64(str)
strict_encode64(bin)
urlsafe_encode64(bin)
urlsafe_decode64(str)
From the doc also I didn’t get any examples. So examples with
explanation might be helpful for me to understand.
Thanks in advance
I would suggest “creating” as it were your own examples using irb.
I’d start by encoding a string, then decoding that result, eg.
001> x = strict_encode64(‘hello’)
002> strict_decode64(x)
etc.
Sent from my phone, so excuse the typos.
ri strict_decode64
then go read RFC 4648
rinse, repeat.
Am 07.03.2013 21:45, schrieb Pritam D.:
From the doc also I didn’t get any examples. So examples with
explanation might be helpful for me to understand.
Try `ri Base64’, there are examples.
And if you do not have any clue for what purpose you would use
those methods then you probably can just ignore them.