1File::KDBX::Cipher::StrUesaemr(3C)ontributed Perl DocumeFnitlaet:i:oKnDBX::Cipher::Stream(3)
2
3
4

NAME

6       File::KDBX::Cipher::Stream - A cipher stream encrypter/decrypter
7

VERSION

9       version 0.906
10

SYNOPSIS

12           use File::KDBX::Cipher::Stream;
13
14           my $cipher = File::KDBX::Cipher::Stream->new(algorithm => $algorithm, key => $key, iv => $iv);
15

DESCRIPTION

17       A subclass of File::KDBX::Cipher for encrypting and decrypting data
18       using a stream cipher.
19

ATTRIBUTES

21   counter
22           $counter = $cipher->counter;
23
24       Get the initial counter / block count into the keystream.
25
26   offset
27           $offset = $cipher->offset;
28
29       Get the initial byte offset into the keystream. This has precedence
30       over "counter" if both are set.
31

METHODS

33   crypt
34           $ciphertext = $cipher->crypt($plaintext);
35           $plaintext = $cipher->crypt($ciphertext);
36
37       Encrypt or decrypt some data. These ciphers are symmetric, so
38       encryption and decryption are the same operation. This method is an
39       alias for both "encrypt" in File::KDBX::Cipher and "decrypt" in
40       File::KDBX::Cipher.
41
42   keystream
43           $stream = $cipher->keystream;
44
45       Access the keystream.
46
47   dup
48           $cipher_copy = $cipher->dup(%attributes);
49
50       Get a copy of an existing cipher with the counter reset, optionally
51       applying new attributes.
52

BUGS

54       Please report any bugs or feature requests on the bugtracker website
55       <https://github.com/chazmcgarvey/File-KDBX/issues>
56
57       When submitting a bug or request, please include a test-file or a patch
58       to an existing test-file that illustrates the bug or desired feature.
59

AUTHOR

61       Charles McGarvey <ccm@cpan.org>
62
64       This software is copyright (c) 2022 by Charles McGarvey.
65
66       This is free software; you can redistribute it and/or modify it under
67       the same terms as the Perl 5 programming language system itself.
68
69
70
71perl v5.38.0                      2023-09-27     File::KDBX::Cipher::Stream(3)
Impressum