# in foo.cgi: my $password = 'thesecret'; require 'thefile.pl'; my $encoded = encrypto( $password );