Rechercher une page de manuel
Crypt::NULL.3pm
Langue: en
Version: 2001-05-04 (mandriva - 01/05/08)
Section: 3 (Bibliothèques de fonctions)
NAME
Crypt::NULL - NULL Encryption AlgorithmSYNOPSIS
use Crypt::NULL;$cipher = Crypt::NULL->new($key);
$ciphertext = $cipher->encrypt($plaintext);
$plaintext = $cipher->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)
- 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::TwofishAUTHOR
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>.
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre