Main > Programming > Libraries >

Apache::CryptHash 3.03

Apache::CryptHash 3.03

Sponsored Links

Apache::CryptHash 3.03 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.013 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 961
Date added: 2007-03-13
Publisher: Michael Robinton

Apache::CryptHash 3.03 description

Apache::CryptHash is a Perl module with encrypted tokens for cookies.

Creates an encrypted cookie-like string with a MAC (checksum) from a hash of critical and non-critical values. The MAC is created on only the critical values. Decryption will fail if the string has been altered and the MAC does not match when the string is decrypted.

Particularly useful when using COOKIES and will do all the hard work for Apache::AuthCookie

init()

Create class reference and set passcode to the value returned by Sys::Hostname::hostname;

my $c = Apache::CryptHash->init; # default passcode = hostname

init takes an optional parameter

my $c = Apache::CryptHash->init(no);

$c->passcode(no} # will turn encryptation off
# and put in Debug mode

Optionally, the passcode or debug may be set by

$c->passcode(no) # will turn encryptation off
# and put in Debug mode
$c->passcode(newpasscode); # change the passcode
name & passcode

Hash Header may be set to any string

$c->name(some_string); # default Secret

Just remember to obey the rules for allowed characters in cookie strings for both name & passcode

encode()

Generate an encrypted cookie-like value from a hash. Optional invarient values may be specified for a MAC

$c->encode(%state, @mac_keys).

Only the crypt secret and the mac_keys valuess are present in the MAC. What is returned is

NAME:crypted_string (NAME.Debug:crypted_string)

where $c->pascode(somename) (default Secret)
decode($$$)

Decrypt and generate state hash from the encrypted hash

$c->decode($cookie,%state, @mac_keys);

Return false if decode or MAC fails

md5_hex($)

Return the md5 hash of input string.

md5_b64($)

Return the md5 base 64 hash of input string.

checkMAC

$c = Apache::CryptHash->init(some password);
$c->checkMAC(%state, @mac_keys)

Does a comparison of the MAC in the %state vs the calculated value based on @mac_keys and returns a boolean result.
Dont forget to set the passcode or the check will fail!

Apache::CryptHash 3.03 Screenshot

Advertisements

Apache::CryptHash 3.03 Keywords

Bookmark Apache::CryptHash 3.03

Hyperlink code:
Link for forum:

Apache::CryptHash 3.03 Copyright

WareSeeker periodically updates pricing and software information of Apache::CryptHash 3.03 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Apache::CryptHash 3.03 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
Apache::ASP is a Perl module for Active Server Pages for Apache with mod_perl . Free Download
Apache::MP3 is a Perl module that can generate streamable directories of MP3 and Ogg Vorbis files. Free Download
Data::Encrypted is a Perl module to transparently store encrypted data via RSA. Free Download
Apache::Wyrd::Chart is an embed Dynamically-redrawn PNG charts in HTML. Free Download
Set::Hash is a Perl module with hashes as objects with lots of handy methods and support for method chaining. Free Download
Apache::Storage is Perl module containing simple functions to store and retrieve information from within the Apache process. Free Download
Apache::AuthPerLDAP is a mod_perl PerLDAP Authentication Module. Free Download
Apache::TestRun is a Perl module to run the test suite. Free Download