-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Fábio Gomes escreveu: > Em Seg 14 Nov 2005 14:00, Felipe Augusto van de Wiel escreveu: > >> I have to try with command line, but I'm not sure how >>to encode the base64... any ideas/tips to save google time? :) > ------------------- > #!/usr/bin/perl > use MIME::Base64; > print "String: "; > my $string = <STDIN>; > $encoded = encode_base64($string); > print "$encoded\n"; > ---------------------------
Thanks! :) I did a smal change to get a multi line text. - ---- #!/usr/bin/perl use MIME::Base64; print "String: "; while($line = <STDIN>) { $string .= $line; }; $encoded = encode_base64($string); print "$encoded\n"; - ---- - -- Felipe Augusto van de Wiel <[EMAIL PROTECTED]> Coordenadoria de Tecnologia da Informação (CTI) - SEDU/PARANACIDADE http://www.paranacidade.org.br/ Phone: (+55 41 3350 3300) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with Debian - http://enigmail.mozdev.org iD8DBQFDnxkLCj65ZxU4gPQRAhYQAKDFA7oPeVPYVfqwvB35aVPd/TvNlACfS0AT I9dk2OkQP17fLwIOOn09Its= =qKj5 -----END PGP SIGNATURE-----