Base64

hey rubys,
is there a base64 module for ruby?
where can i find it?

greets,
marc

···

magic garden GmbH - Agentur für Informationsarchitektur

Hermannstr. 15 - 70178 Stuttgart (Am Feuersee)

www.magic-garden.de ¦ beyerlin@magic-garden.de

Tel. (07 11) 619 57-42 ¦ Fax (07 11) 615 01 38

Hi,

···

In message “base64” on 02/07/30, “Marc Beyerlin” beyerlin@magic-garden.de writes:

is there a base64 module for ruby?
where can i find it?

Use pack.

packed = [“this is a sample string”].pack(“m”)
packed.unpack(“m”)

						matz.

Use pack.
packed = [“this is a sample string”].pack(“m”)
packed.unpack(“m”)

Or just use base64 module.

require 'base64’
encoded = encode64(“source”)
decoded = decode64(encoded)

···


shirai@p1jp.com

Shirai,Kaoru
PlusOne Co.,Ltd