Crypt::...er::ARIA(3)
π NAME π
okay so bestie, this is the Crypt::...er::ARIA(3) manual page β User Contributed Perl Documentation, hiiii π«Ά β and the module itβs hyping is Crypt::Cipher::ARIA: symmetric cipher ARIA, key size: 128/192/256 bits π
β¨
β¨ SYNOPSIS β¨
Two examples, bestie β pick your fave. The first one uses Crypt::Mode::CBC, and the second one is the slower Crypt::CBC route. Both are giving βI know what Iβm doingβ energy π₯
### example 1
use Crypt::Mode::CBC;
my $key = '...'; # length must be a valid key size for this cipher
my $iv = '...'; # 16 bytes
my $cbc = Crypt::Mode::CBC->new('ARIA');
my $ciphertext = $cbc->encrypt("secret data", $key, $iv);
### example 2 (slower)
use Crypt::CBC;
use Crypt::Cipher::ARIA;
my $key = '...'; # length must be a valid key size for this cipher
my $iv = '...'; # 16 bytes
my $cbc = Crypt::CBC->new( -cipher=>'Cipher::ARIA', -key=>$key, -iv=>$iv );
my $ciphertext = $cbc->encrypt("secret data");
πΈ DESCRIPTION πΈ
Since: CryptX-0.090 β
This module implements the ARIA cipher. Its interface is compatible with Crypt::CBC β periodt π
β οΈ Note: This module only implements single-block encryption and decryption. For general data, use a block mode such asCrypt::Mode::CBC,Crypt::Mode::CTR, orCrypt::CBC(which is slower). π«Ά
π METHODS π
Unless noted otherwise, assume $c is an existing cipher object created via new, for example:
my $c = Crypt::Cipher::ARIA->new($key);
π new
Make your cipher object here, bestie. You can pass just $key, or $key plus $rounds if thatβs your vibe.
my $c = Crypt::Cipher::ARIA->new($key);
#or
my $c = Crypt::Cipher::ARIA->new($key, $rounds);
# $key .... [binary string] key of an accepted length (see keysize, min_keysize, max_keysize)
# $rounds . [integer] optional, number of rounds (if supported by the cipher; croaks on invalid value)
So: $key is a [binary string] key of an accepted length (peep keysize, min_keysize, max_keysize), and $rounds is an [integer] optional number of rounds β if supported by the cipher, and it croaks on an invalid value. π«Ά
π encrypt
Exactly one block of plaintext, no more, no less. The length of $plaintext must equal blocksize; croaks otherwise. An empty string is accepted and returned unchanged. π
my $ciphertext = $c->encrypt($plaintext);
Returns the encrypted block as a binary string (raw bytes).
π decrypt
Exactly one block of ciphertext. The length of $ciphertext must equal blocksize; croaks otherwise. An empty string is accepted and returned unchanged. π¦
my $plaintext = $c->decrypt($ciphertext);
Returns the decrypted block as a binary string (raw bytes).
π keysize
Just an alias for max_keysize. Same value, same energy. β¨
$c->keysize;
#or
Crypt::Cipher::ARIA->keysize;
#or
Crypt::Cipher::ARIA::keysize;
π§± blocksize
Returns the cipher block size (in bytes).
$c->blocksize;
#or
Crypt::Cipher::ARIA->blocksize;
#or
Crypt::Cipher::ARIA::blocksize;
π max_keysize
Returns the maximum key size (in bytes).
$c->max_keysize;
#or
Crypt::Cipher::ARIA->max_keysize;
#or
Crypt::Cipher::ARIA::max_keysize;
π₯Ί min_keysize
Returns the minimum key size (in bytes).
$c->min_keysize;
#or
Crypt::Cipher::ARIA->min_keysize;
#or
Crypt::Cipher::ARIA::min_keysize;
π default_rounds
Returns the cipherβs default round count.
$c->default_rounds;
#or
Crypt::Cipher::ARIA->default_rounds;
#or
Crypt::Cipher::ARIA::default_rounds;
π SEE ALSO π
go peek at these, bestie:
CryptX,Crypt::Cipher<https://en.wikipedia.org/wiki/ARIA_(cipher)><https://www.rfc-editor.org/rfc/rfc5794>
okay bye bestie π β this page came from perl v5.44.0, dated 2026-10-17, and the footer says Crypt::...er::ARIA(3). stay iconic and encrypted β¨π
π¦ where this page comes from
- arch rolling: perl-cryptx 0.091-2 Β· PerlArtistic AND GPL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms