in reply to Convert Java to Perl -> Script attached
use Encode qw(encode_utf8); use Digest::SHA1(sha1_base64); my $encoded = sha1_base64(encode_utf8($string));
But since my java is a bit rusty I might be wrong after all.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Convert Java to Perl -> Script attached
by smoky (Novice) on Mar 03, 2009 at 14:04 UTC | |
|
Re^2: Convert Java to Perl -> Script attached
by smoky (Novice) on Mar 03, 2009 at 13:22 UTC | |
by almut (Canon) on Mar 03, 2009 at 14:48 UTC | |
by smoky (Novice) on Mar 03, 2009 at 13:25 UTC |