Enrique Castilla Contreras > DBIx-PasswordIniFile-1.1 > encpassw.pl

Download:
DBIx-PasswordIniFile-1.1.tar.gz

Annotate this POD

CPAN RT

New  2
Open  1
View Bugs
Report a bug
Source  

NAME ^

encpassw.pl - Encrypts password in .ini files

DESCRIPTION ^

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.

Style .ini configuration files are those with a syntax compatible with Config::IniFiles, and briefly this means:

See Config::IniFiles for detailed information about syntax.

SYNTAX ^

    perl encpassw.pl --inifile=<ini_file> 
                     --section=<section_name_of_ini_file_with_password_param>
                     [--key=<encryption_decryption_key> ]
                     [--cipher=<encryption_decryption_algorithm> ]

ARGUMENTS ^

inifile

Name or pathname of file whose password value have to be encrypted. It doen't need to have .ini in its name.

section

Section name in inifile where the password property is.

key

Encryption / Decryption key in clear form. Use the same value with DBIx::PasswordIniFile.

cipher

Name of an installed cipher algoritm. Cipher algoritma live in namespace Crypt::.

Default is Crypt::Blowfish_PP. If not specified, it must be installed.

COPYRIGHT ^

Copyright 2005-2008 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.

AUTHOR ^

Enrique Castilla <mailto:ecastillacontreras@yahoo.es|ecastillacontreras@yahoo.es>.