-
-
03 Mar 2022 20:53:16 UTC
- Distribution: MooX-Role-CryptedPassword
- Module version: 0.02
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (0)
- Testers (406 / 0 / 1)
- Kwalitee
Bus factor: 1- 100.00% Coverage
- License: perl_5
- Perl: v5.10.1
- Activity
24 month- Tools
- Download (6.35KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Crypt::CBC
- Crypt::Rijndael
- Moo
- Test::Fatal
- Test::Simple
- Test::Warnings
- autodie
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
MooX::Role::CryptedPassword - Password attribute from a encrypted file.
SYNOPSIS
Prepare:
$ create_crypted_password --file-name etc/password.private \ --cipher-key 'This-is-the-cipher-key' \ --password 'This-is-a-nice-password'
Your class:
package MyUserData; use Moo; with 'MooX::Role::CryptedPassword'; has username => (is => 'ro', required => 1); ... 1;
Somewhere else:
my $ud = MyUserData->new( username => 'abeltje', password_file => 'etc/password.private', cipher_key => 'This-is-the-cipher-key', );
ATTRIBUTES
password => $password
The decrypted version of the password found in the
password_file
parameter.DESCRIPTION
This role adds an attribute
password
to your class. If the parameterpassword_file
is passed, the contents are assumed to be encrypted with the Rijndael cipher (and you should supply thecipher_key
argument).Use the supplied
create_crypted_password
tool to generate the file.In case the password (for development reasons) doesn't need to be encrypted or comes from a different source (like a key-value-store), one can always pass a plain-text password directly by passing it as the
password
parameter.AUTHOR
© MMXVII - Abe Timmerman <abeltje@cpan.org>
LICENSE
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Module Install Instructions
To install MooX::Role::CryptedPassword, copy and paste the appropriate command in to your terminal.
cpanm MooX::Role::CryptedPassword
perl -MCPAN -e shell install MooX::Role::CryptedPassword
For more information on module installation, please visit the detailed CPAN module installation guide.