1File::KDBX::IO::Crypt(3U)ser Contributed Perl DocumentatiFoinle::KDBX::IO::Crypt(3)
2
3
4

NAME

6       File::KDBX::IO::Crypt - Encrypter/decrypter IO handle
7

VERSION

9       version 0.906
10

SYNOPSIS

12           use File::KDBX::IO::Crypt;
13           use File::KDBX::Cipher;
14
15           my $cipher = File::KDBX::Cipher->new(...);
16
17           open(my $out_fh, '>:raw', 'ciphertext.bin');
18           $out_fh = File::KDBX::IO::Crypt->new($out_fh, cipher => $cipher);
19
20           print $out_fh $plaintext;
21
22           close($out_fh);
23
24           open(my $in_fh, '<:raw', 'ciphertext.bin');
25           $in_fh = File::KDBX::IO::Crypt->new($in_fh, cipher => $cipher);
26
27           my $plaintext = do { local $/; <$in_fh> );
28
29           close($in_fh);
30

ATTRIBUTES

32   cipher
33       A File::KDBX::Cipher instance to do the actual encryption or
34       decryption.
35

METHODS

37   new
38           $fh = File::KDBX::IO::Crypt->new(%attributes);
39           $fh = File::KDBX::IO::Crypt->new($fh, %attributes);
40
41       Construct a new crypto IO handle.
42

BUGS

44       Please report any bugs or feature requests on the bugtracker website
45       <https://github.com/chazmcgarvey/File-KDBX/issues>
46
47       When submitting a bug or request, please include a test-file or a patch
48       to an existing test-file that illustrates the bug or desired feature.
49

AUTHOR

51       Charles McGarvey <ccm@cpan.org>
52
54       This software is copyright (c) 2022 by Charles McGarvey.
55
56       This is free software; you can redistribute it and/or modify it under
57       the same terms as the Perl 5 programming language system itself.
58
59
60
61perl v5.38.0                      2023-09-27          File::KDBX::IO::Crypt(3)
Impressum