7stud2
(7stud --)
1
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
···
--
Posted via http://www.ruby-forum.com/.
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.
On Mar 8, 2013 6:45 AM, "Pritam Dey" <lists@ruby-forum.com> wrote:
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
--
Posted via http://www.ruby-forum.com/\.
ri strict_decode64
then go read RFC 4648
rinse, repeat.
···
On Thu, Mar 7, 2013 at 3:45 PM, Pritam Dey <lists@ruby-forum.com> wrote:
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
--
Posted via http://www.ruby-forum.com/\.
stomar
(stomar)
4
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.
···
Am 07.03.2013 21:45, schrieb Pritam Dey:
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.
--
<https://github.com/stomar/>