encpassw.pl - Encrypts password in .ini files
.ini
Reads the value of a property password in a configuration file ('a la' .ini style), and rewrites the value with the result of its encryption.
password
Style .ini configuration files are those with a syntax compatible with Config::IniFiles, and briefly this means:
Config::IniFiles
Lines beginning with # are comments and are ignored. Also, blank lines are ignored. Use this for readability purposes.
#
A section name is a string (including whitespaces) between [ and ].
[
]
Each section has one or more property/value pairs. Each property/value pair is specified with the syntax
property=value
One property/value pair per line.
See Config::IniFiles for detailed information about syntax.
perl encpassw.pl --inifile=<ini_file> --section=<section_name_of_ini_file_with_password_param> [--key=<encryption_decryption_key> ] [--cipher=<encryption_decryption_algorithm> ]
Name or pathname of file whose password value have to be encrypted. It doen't need to have .ini in its name.
Section name in inifile where the password property is.
inifile
Encryption / Decryption key in clear form. Use the same value with DBIx::PasswordIniFile.
DBIx::PasswordIniFile
Name of an installed cipher algoritm. Cipher algorithms live in namespace Crypt::.
Crypt::
If not specified, default is Crypt::Blowfish. It must be installed.
Crypt::Blowfish
Copyright 2010-2020 Enrique Castilla.
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.
Enrique Castilla <mailto:ecastillacontreras@yahoo.es|ecastillacontreras@yahoo.es>.
To install DBIx::PasswordIniFile, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::PasswordIniFile
CPAN shell
perl -MCPAN -e shell install DBIx::PasswordIniFile
For more information on module installation, please visit the detailed CPAN module installation guide.