[html-formfu] Password hash gives different results each time

Ascii King tech at swattermatter.com
Fri May 1 12:49:25 GMT 2009


Thanks. I have trouble reading through the dump because it returns so 
much data.

Carl Franks wrote:
> 2009/4/30 Ascii King <tech at swattermatter.com>:
>   
>> I have a password field that I am trying to encrypt using some code provided
>> by David Schmidt. It seems to work, except that it returns a different value
>> each time, even if the passwords are the same.
>>     
>
>   
>> sub hashit {
>>   my ( $self, $value, $params ) = @_;
>>   return sha1_hex($value);
>> }
>>     
>
> The Callback doesn't receive a $self object:
>
>     my ( $value, $params ) = @_;
>
> "if in doubt, dump it out" :)
>
>     warn Dumper( @_ );
>
> Cheers,
> Carl
>
> _______________________________________________
> HTML-FormFu mailing list
> HTML-FormFu at lists.scsys.co.uk
> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu
>
>   



More information about the HTML-FormFu mailing list