Javascript::SHA1

Calculate the SHA1 digest of a CGI form field
Download

Javascript::SHA1 Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Ron Savage
  • Publisher web site:
  • http://search.cpan.org/~rsavage/

Javascript::SHA1 Tags


Javascript::SHA1 Description

Calculate the SHA1 digest of a CGI form field Javascript::SHA1 is a Perl module to calculate the SHA1 digest of a CGI form field.SynopsisThis is a complete, runnable, tested program. #!/usr/bin/perl use strict; use warnings; use CGI; use Javascript::SHA1; # ------------------ my($q) = CGI -> new(); my($p) = $q -> param('my_password') || ''; my($js) = Javascript::SHA1 -> new(); print $q -> header(), $q -> start_html({script => $js -> javascript('my_password'), title => 'Javascript::SHA1'}), $q -> h1({align => 'center'}, 'Javascript::SHA1'), "Previous value: $p", $q -> br(), $q -> start_form({action => $q -> url(), name => 'SHA1'}), 'Username: ', $q -> textfield({name => 'my_username', size => 50}), $q -> br(), 'Password: ', $q -> password_field({name => 'my_password', size => 50}), $q -> br(), 'Generate str2hex_sha1: ', $q -> submit({onClick => 'return str2hex_sha1()'}), $q -> end_form(), $q -> end_html();Javascript::SHA1 is a pure Perl module.This module allows you to convert user input, eg a password, into the SHA1 digest of that input.This means the password itself need never be transmitted across the network - only the SHA1 digest need be transmitted. Requirements: · Perl


Javascript::SHA1 Related Software