10 Aug 2015 23:52:51 UTC
- Distribution: PerlIO-via-GnuPG
- Module version: 0.006
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (96 / 158 / 0)
- KwaliteeBus factor: 0
- 88.57% Coverage
- License: lgpl_2_1
- Perl: v5.14.0
- Download (31.84KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
- SEE ALSO
- COPYRIGHT AND LICENSE
PerlIO::via::GnuPG::Maybe - Layer to decrypt or pass-through unencrypted data on read
This document describes version 0.006 of PerlIO::via::GnuPG::Maybe - released August 10, 2015 as part of PerlIO-via-GnuPG.
use PerlIO::via::GnuPG::Maybe; # cleartext.txt may or may not be encrypted; # returns the content or dies on any other error. open(my $fh, '<:via(GnuPG::Maybe)', 'cleartext.txt') or die "cannot open! $!"; my @in = <$fh>; # or whatever...
This is a PerlIO module to decrypt files transparently. If you try to open and read a file that is not encrypted, we will simply pass that file through unmolested. If you try to open and read one that is encrypted, it tries to decrypt it and pass it back along to you.
If you're looking for a stricter implementation, see PerlIO::via::GnuPG; it will die if the file is unencrypted.
It's pretty simple and does not support writing, but works.
...and if it doesn't, please file an issue :)
Please see those modules/websites for more information related to this module.
Please report any bugs or feature requests on the bugtracker website https://github.com/RsrchBoy/perlio-via-gnupg/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.
Chris Weyl <email@example.com>
Please note I do not expect to be gittip'ed or flattr'ed for this work, rather it is simply a very pleasant surprise. I largely create and release works like this because I need them or I find it enjoyable; however, don't let that stop you if you feel like it ;)
This software is Copyright (c) 2013 by Chris Weyl.
This is free software, licensed under:
The GNU Lesser General Public License, Version 2.1, February 1999
Module Install Instructions
To install PerlIO::via::GnuPG, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install PerlIO::via::GnuPG
For more information on module installation, please visit the detailed CPAN module installation guide.
|s||Focus search bar|
|?||Bring up this help dialog|
|g p||Go to pull requests|
|g i||go to github issues (only if github is preferred repository)|
|g a||Go to author|
|g c||Go to changes|
|g i||Go to issues|
|g d||Go to dist|
|g r||Go to repository/SCM|
|g s||Go to source|
|g b||Go to file browse|