NAME
Crypt::Age::Simple::Common - Helper functions for Crypt::Age::Simple
SYNOPSIS
use Crypt::Age::Simple::Common qw< :constants :misc :scrypt :x25519 >;
DESCRIPTION
This module provides helper functions for other modules across the distribution.
INTERFACE
The interface is function-oriented. Functions can be imported by name or in groups, like :constants or :misc.
Constants
The following functions belong to group :constants.
CHUNK_SIZENONCE_SIZESCRYPT_SALT_PREFIXTAG_SIZEVERSION_LINE
scrypt
age_scrypt_decrypter-
Crypt::Age::Simple::Decrypt constructor aimed at scrypt.
age_scrypt_encrypter-
Crypt::Age::Simple::Encrypt constructor aimed at scrypt.
age_scrypt_unwrap_file_key-
my $file_key = age_scrypt_unwrap_file_key($stanza, $password); age_scrypt_wrap_key-
my $key = age_scrypt_wrap_key($password, $salt, $Nlog2);$Nlog2is the base-2 logarithm of the scrypt work factor.
x25519
age_x25519_decrypter-
Crypt::Age::Simple::Decrypt constructor aimed at X25519.
age_x25519_encrypter-
Crypt::Age::Simple::Encrypt constructor aimed at X25519.
Miscellanea
age_base64_multiline-
Base-64 without padding and with lines no longer than 64 characters.
age_primitives_make_noncebuffer-
Wrapper around Crypt::Age::Simple::Buffer.
BUGS AND LIMITATIONS
Minimum perl version 5.24.
SEE ALSO
AUTHOR
Flavio Poletti <flavio@polettix.it>
COPYRIGHT AND LICENSE
Copyright 2026 by Flavio Poletti <flavio@polettix.it>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.