File::KDBX::IO::Crypt3pm
Encrypter/decrypter io handle
Usage
use File::KDBX::IO::Crypt;use File::KDBX::Cipher;my $cipher = File::KDBX::Cipher->new(...);open(my $out_fh, '>:raw', 'ciphertext.bin');$out_fh = File::KDBX::IO::Crypt->new($out_fh, cipher => $cipher);print $out_fh $plaintext;close($out_fh);open(my $in_fh, '<:raw', 'ciphertext.bin');$in_fh = File::KDBX::IO::Crypt->new($in_fh, cipher => $cipher);my $plaintext = do { local $/; <$in_fh> );close($in_fh);
Version
version 0.906
Attributes
cipher
A File::KDBX::Cipher instance to do the actual encryption or decryption.
Methods
new
$fh = File::KDBX::IO::Crypt->new(%attributes);$fh = File::KDBX::IO::Crypt->new($fh, %attributes);
Construct a new crypto IO handle.
Copyright and license
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.
Releases
2 releases since Debian 12 (Bookworm); the text changed 1 time.