Secret::Simple

Secret::Simple are secure secrets in configurations and code.
Download

Secret::Simple Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Adam G. Foust
  • Publisher web site:
  • http://search.cpan.org/~agf/Secret-Simple-0.11/lib/Secret/Simple.pm

Secret::Simple Tags


Secret::Simple Description

Secret::Simple are secure secrets in configurations and code. Secret::Simple are secure secrets in configurations and code.SYNOPSIS # OOP style my $ss = Secret::Simple->new(); my $ciphertext = $ss->encrypt($plaintext); my $plaintext = $ss->decrypt($ciphertext); # procedural style my $ciphertext = ssencrypt($plaintext); my $plaintext = ssdecrypt($ciphertext);This module implements a straightforward interface for encrypting and decrypting secret information such as user IDs and passwords (e.g. database connection or remote account credentials). Secret::Simple can also be used on a limited basis to protect arbitrary data. By default the ciphertext returned is Base 64 encoded so as to be easily embedded within configurations or scripts.A command-line utility called sstool is included to facilitate easy manipulation of cipher and plaintext snippets. The encryption mechanism utilizes the strong AES algorithm, so any weaknesses in Secret::Simple predominantly lie in how keys are protected. A balance must be struck between key accessibility, key protection, and overall complexity. The calling code can supply a key, series of keys, key files, or a combination. If no key information is explicitly passed, the module will attempt to use the OS user's private SSH DSA key file by default if it exists.The major goal of this module is to be as secure as possible while being simple and convenient enough to encourage its use. Psychology does factor in: simple is a very important consideration. If the security methods are too onerous or complicated to use, many sysadmins or developers may simply use plaintext (no protection other that OS file permissions) or simple ciphers like rot13. The security of the Secret::Simple method is not perfect, but it does represent a significant improvement over commonly-used nonsecure methods of embedding credentials and other secrets in Perl configurations and scripts. If used appropriately, Secret::Simple can greatly improve application and configuration security. Even so, care must always be taken to protect files and file permissions. Requirements: · Perl


Secret::Simple Related Software