Perl Diver 2.33
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

Crypt::Stream::Rabbit

Name Crypt::Stream::Rabbit
Version 0.076
Located at /usr/lib/x86_64-linux-gnu/perl5/5.34
File /usr/lib/x86_64-linux-gnu/perl5/5.34/Crypt/Stream/Rabbit.pm
Is Core No
Search CPAN for this module Crypt::Stream::Rabbit
Documentation Crypt::Stream::Rabbit
Module Details Crypt::Stream::Rabbit


NAME

Crypt::Stream::Rabbit - Stream cipher Rabbit


SYNOPSIS

   use Crypt::Stream::Rabbit;
   # encrypt
   $key = "1234567890123456";
   $iv  = "12345678";
   $stream = Crypt::Stream::Rabbit->new($key, $iv);
   $ct = $stream->crypt("plain message");
   # decrypt
   $key = "1234567890123456";
   $iv  = "12345678";
   $stream = Crypt::Stream::Rabbit->new($key, $iv);
   $pt = $stream->crypt($ct);


DESCRIPTION

Provides an interface to the Rabbit stream cipher.


METHODS

new

 $stream = Crypt::Stream::Rabbit->new($key, $iv);
 # $key .. keylen must be up to 16 bytes
 # $iv  .. ivlen must be up to 8 bytes
 $stream = Crypt::Stream::Rabbit->new($key);
 #BEWARE: this is different from new($key, "")

crypt

 $ciphertext = $stream->crypt($plaintext);
 #or
 $plaintext = $stream->crypt($ciphertext);

keystream

 $random_key = $stream->keystream($length);

clone

 $stream->clone();


SEE ALSO

Perl Diver brought to you by ScriptSolutions.com © 1997- 2026