I'd like to upload Crypt::NULL (README appended), a module implementing
NULL encryption as described in RFC 2410, to the CPAN. Please suggest an
alternative name is Crypt::NULL is unsuitable.
modid: Crypt::NULL
DSLI: RdpO
description: NULL Encryption Algorithm
userid: AMS (Abhijit Menon-Sen)
chapterid: 14 (Security_and_Encryption)
- ams
NAME
Crypt::NULL - NULL Encryption Algorithm
SYNOPSIS
use Crypt::NULL;
$null = Crypt::NULL->new($key);
$ciphertext = $null->encrypt($plaintext);
$plaintext = $null->decrypt($ciphertext);
DESCRIPTION
The NULL Encryption Algorithm is a symmetric block cipher described
in RFC 2410 by Rob Glenn and Stephen Kent.
This module implements NULL encryption. It supports the Crypt::CBC
interface, with the following functions.
Functions
blocksize
Returns the size (in bytes) of the block (16, in this case).
keysize
Returns the size (in bytes) of the key (16, in this case).
new($key, $rounds)
This creates a new Crypt::NULL object with the specified key.
encrypt($data)
Encrypts blocksize() bytes of $data and returns the
corresponding ciphertext.
decrypt($data)
Decrypts blocksize() bytes of $data and returns the
corresponding plaintext.
SEE ALSO
Crypt::CBC, Crypt::TEA, Crypt::Blowfish
AUTHOR
Abhijit Menon-Sen <[EMAIL PROTECTED]>
Copyright 2001 Abhijit Menon-Sen. All rights reserved.
This is free software; you may redistribute and/or modify it
under the same terms as Perl itself.