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::RC4

Name Crypt::Stream::RC4
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/RC4.pm
Is Core No
Search CPAN for this module Crypt::Stream::RC4
Documentation Crypt::Stream::RC4
Module Details Crypt::Stream::RC4


NAME

Crypt::Stream::RC4 - Stream cipher RC4


SYNOPSIS

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


DESCRIPTION

Provides an interface to the RC4 stream cipher.


METHODS

new

 $stream = Crypt::Stream::RC4->new($key);
 # $key .. length 5-256 bytes (40 - 2048 bits)

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