Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
The says it is not the same as sent, meaning it did not work any help would be greatly appreciateduse LWP::UserAgent; use Digest::SHA1 qw(sha1 sha1_hex sha1_base64); $sourcekey = 'K123456789L'; $pin = '1234'; $command = 'cc:sale'; $amount = '5.50'; $invoice = '123123'; # Generate Hash $seed = rand(); $prehash = $command . ":" . $pin . ":" . $amount . ":" . $invoice . ": +" . $seed; $hash = 's/' . $seed . '/' . sha1_hex($prehash) . '/n';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: digest::SHA1 problem
by pme (Monsignor) on Feb 10, 2015 at 18:47 UTC | |
by Anonymous Monk on Feb 10, 2015 at 19:28 UTC | |
by pme (Monsignor) on Feb 11, 2015 at 17:43 UTC | |
by Anonymous Monk on Feb 11, 2015 at 19:23 UTC | |
by pme (Monsignor) on Feb 11, 2015 at 20:33 UTC | |
|
Re: digest::SHA1 problem
by Anonymous Monk on Feb 10, 2015 at 19:57 UTC | |
by Anonymous Monk on Feb 11, 2015 at 20:36 UTC | |
by poj (Abbot) on Feb 11, 2015 at 21:02 UTC |