NAME

Crypt::Passphrase::Util::Crypt64 - An implementation of the crypt64 encoding

VERSION

version 0.022

SYNOPSIS

use Crypt::Passphrase::Crypt64 ':all';

my $encoded = encode_crypt64('abcd');
my $decoded = decode_crypt64($encoded);

DESCRIPTION

This module provides functions to encode and decode strings into and from the crypt64 encoding. This is similar to base64, but incompatible because it uses a slightl different alphabet and because it's little-endian. This encoding is traditionally used to crypt style encrypt password hashes.

FUNCTIONS

encode_crypt64

This takes a bytestring and encodes it in crypt64.

decode_crypt64

This takes a crypt64 encoded string and decodes it to a bytestring.

endcode_crypt64_number

This takes a number to encode, and optionally a desired length.

decode_crypt64_number

This takes a crypt64 encoded number, and decodes it to a number.

AUTHOR

Leon Timmermans <fawaka@gmail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2021 by Leon Timmermans.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.