Tie::EncryptedHash

Tie::EncryptedHash is a Perl module that contains hashes (and objects based on hashes) with encrypting fields.
Download

Tie::EncryptedHash Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Vipul Ved Prakash
  • Publisher web site:
  • http://search.cpan.org/~vipul/Crypt-RSA-1.98/lib/Crypt/RSA/DataFormat.pm

Tie::EncryptedHash Tags


Tie::EncryptedHash Description

Tie::EncryptedHash is a Perl module that contains hashes (and objects based on hashes) with encrypting fields. Tie::EncryptedHash is a Perl module that contains hashes (and objects based on hashes) with encrypting fields.SYNOPSIS use Tie::EncryptedHash; my %s = (); tie %s, Tie::EncryptedHash, 'passwd'; $s{foo} = "plaintext"; # Normal field, stored in plaintext. print $s{foo}; # (plaintext) $s{_bar} = "signature"; # Fieldnames that begin in single # underscore are encrypted. print $s{_bar}; # (signature) Though, while the password # is set, they behave like normal fields. delete $s{__password}; # Delete password to disable access # to encrypting fields. print $s{_bar}; # (Blowfish NuRVFIr8UCAJu5AWY0w...) $s{__password} = 'passwd'; # Restore password to gain access. print $s{_bar}; # (signature) $s{_baz}{a}{b} = 42; # Refs are fine, we encrypt them too.Tie::EncryptedHash augments Perl hash semantics to build secure, encrypting containers of data. Tie::EncryptedHash introduces special hash fields that are coupled with encrypt/decrypt routines to encrypt assignments at STORE() and decrypt retrievals at FETCH(). By design, encrypting fields are associated with keys that begin in single underscore. The remaining keyspace is used for accessing normal hash fields, which are retained without modification.While the password is set, a Tie::EncryptedHash behaves exactly like a standard Perl hash. This is its transparent mode of access. Encrypting and normal fields are identical in this mode. When password is deleted, encrypting fields are accessible only as ciphertext. This is Tie::EncryptedHash's opaque mode of access, optimized for serialization.Encryption is done with Crypt::CBC(3) which encrypts in the cipher block chaining mode with Blowfish, DES or IDEA. Tie::EncryptedHash uses Blowfish by default, but can be instructed to employ any cipher supported by Crypt::CBC(3). Requirements: · Perl


Tie::EncryptedHash Related Software