NAME

Dancer2::Session::Pg::Cipher::ChaCha20Poly1305 - ChaCha20-Poly1305 for Dancer2::Session::Pg

VERSION

version 0.001

SYNOPSIS

alg => 'ChaCha20-Poly1305'

DESCRIPTION

ChaCha20 with Poly1305 authentication, from CryptX. A 32-byte key, a 96-bit nonce and a 128-bit tag; cipher id 4.

Prefer it over AES-GCM on hardware without AES acceleration, where it is markedly faster. It takes the same key length as AES-256-GCM, which is what makes those two interchangeable without logging anybody out -- see "Replacing a cipher" in Dancer2::Session::Pg.

Does Dancer2::Session::Pg::Cipher.

METHODS

See Dancer2::Session::Pg::Cipher for the contract.

SEE ALSO

Dancer2::Session::Pg, Dancer2::Session::Pg::Cipher, CryptX

AUTHOR

Mikko Koivunalho <mikko.koivunalho@iki.fi>

LICENSE AND COPYRIGHT

This software is copyright (c) 2026 by Mikko Koivunalho.

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