The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
Req - Runout Scratches - Car Paint Scheme (Warp records)

NAME

Modwheel::Crypt - Abstract factory class for Modwheel cryptography support.

VERSION

v0.3.3

SYNOPSIS

my $text  = 'The quick brown fox jumps over the lazy dog.';
my $crypt = Modwheel::Crypt->new({ require_type => 'One-way' })
my $hashcookie = $crypt->encipher($text);


my $other_text = 'The xuick brown foz rumps ov3r thy lazy fog.';

if (! $crypt->compare($hashcookie, $other_text)) {
    print {*STDERR} "The other text is different.\n";
}

DESCRIPTION

This class is a factory creating a suitable cryptography class.

MORE INFORMATION

See Modwheel::Crypt::Eksblowfish

SUBROUTINES/METHODS

CONSTRUCTOR

Modwheel::Crypt->new({crypt => 'Eksblowfish'}, require_type = 'One-way')>

This function creates a class able to provide cryptographic functions. Arguments can be of the following:

required_type   - The crypt-module to load must be of the given type,
                  where type can be:

        One-way     - One way crypt/Hashcookie/Unix-crypt like.
        Digest      - Digest/Fingerprinting/Hashing like.

crypt           - Explicitly specify crypto-support module to use.
        Example:

        crypt => 'Eksblowfish',
        crypt => 'MyCrypt::ModwheelSupport',

CONFIGURATION AND ENVIRONMENT

None.

DEPENDENCIES

It tries to select the most suitable module for the cryptographic need you have, the following are the requirements of the different classes it can create:

Eksblowfish     -  Requires Crypt::Eksblowfish >= 0.001

INCOMPATIBILITIES

None known at this moment.

BUGS AND LIMITATIONS

If you have a module that doesn't include '::' in the name, it will add Modwheel::Crypt:: to the name.

SEE ALSO

The README included in the Modwheel distribution.

The Modwheel website: http://www.0x61736b.net/Modwheel/

DIAGNOSTICS

If the module name includes the characters '::', it will use the full module name, if it doesn't it will add Modwheel::Crypt:: to the front of the name. So if the module name is:

MyCompany::OurCrypt::ModwheelSupport

it will load that module. If the name is Eksblowfish however, it will load:

Modwheel::Crypt::Eksblowfish

AUTHOR

Ask Solem, ask@0x61736b.net.

LICENSE AND COPYRIGHT

Copyright (C) 2007 by Ask Solem ask@0x61736b.net.

All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.