|
Crypt::NULL - NULL Encryption Algorithm |
Crypt::NULL - NULL Encryption Algorithm
use Crypt::NULL;
$cipher = Crypt::NULL->new($key);
$ciphertext = $cipher->encrypt($plaintext);
$plaintext = $cipher->decrypt($ciphertext);
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.
new($key)encrypt($data)blocksize() bytes of $data and returns the corresponding
ciphertext.
decrypt($data)blocksize() bytes of $data and returns the corresponding
plaintext.
Crypt::CBC, Crypt::TEA, Crypt::Twofish
Abhijit Menon-Sen <ams@wiw.org>
Copyright 2001 Abhijit Menon-Sen. All rights reserved.
This software is distributed under the terms of the Artistic License <URL:http://ams.wiw.org/code/artistic.txt>.
|
Crypt::NULL - NULL Encryption Algorithm |