File::KDBX::Cipher::Stream(3pm) | User Contributed Perl Documentation | File::KDBX::Cipher::Stream(3pm) |
File::KDBX::Cipher::Stream - A cipher stream encrypter/decrypter
version 0.906
use File::KDBX::Cipher::Stream; my $cipher = File::KDBX::Cipher::Stream->new(algorithm => $algorithm, key => $key, iv => $iv);
A subclass of File::KDBX::Cipher for encrypting and decrypting data using a stream cipher.
$counter = $cipher->counter;
Get the initial counter / block count into the keystream.
$offset = $cipher->offset;
Get the initial byte offset into the keystream. This has precedence over "counter" if both are set.
$ciphertext = $cipher->crypt($plaintext); $plaintext = $cipher->crypt($ciphertext);
Encrypt or decrypt some data. These ciphers are symmetric, so encryption and decryption are the same operation. This method is an alias for both "encrypt" in File::KDBX::Cipher and "decrypt" in File::KDBX::Cipher.
$stream = $cipher->keystream;
Access the keystream.
$cipher_copy = $cipher->dup(%attributes);
Get a copy of an existing cipher with the counter reset, optionally applying new attributes.
Please report any bugs or feature requests on the bugtracker website <https://github.com/chazmcgarvey/File-KDBX/issues>
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
Charles McGarvey <ccm@cpan.org>
This software is copyright (c) 2022 by Charles McGarvey.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
2022-11-20 | perl v5.36.0 |