Crypt::VERPString

Encrypt and encode fixed-length records for VERP
Download

Crypt::VERPString Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Dorian Taylor
  • Publisher web site:
  • http://search.cpan.org/~dorian/

Crypt::VERPString Tags


Crypt::VERPString Description

Encrypt and encode fixed-length records for VERP Crypt::VERPString is a Perl module that allows you to encrypt and encode fixed-length records for VERP.SYNOPSIS use Crypt::VERPString; use MIME::Base64; my $cv = Crypt::VERPString->new( cipher => 'IDEA', # defaults to blowfish key => 'HAHGLUBHAL!@#$!%', # anything, really format => 'Na*', # defaults to a* separator => '!', # defaults to - encoder => &MIME::Base64::encode_base64,# defaults to base32 decoder => &MIME::Base64::decode_base64,# ditto ); my $iv = 31337; my $verp = $cv->encrypt($iv, 12345, 'hi i am a payload'); # $verp eq '00007a69! BT8d1wzW12YSFP5v7AnKVipYZ8rkQIT'; # do stuff with this value, send to a friend... # oops, your friend doesn't exist, the message bounces and you # retrieve the envelope. my ($bouncedverp) = ($header =~ /(?:{8}!.*)/); my ($number, $string) = $cv->decrypt($bouncedverp); # now you can do something with this info.VERP stands for Variable Envelope Return Path. It is the act of inserting some sort of identifying string into the local part of the envelope address of an email, in order to match it to a distinct sending, should the message bounce. This module prepares a string suitable for travel in the deep jungle of SMTP, making it possible to store and retrieve unique envelope data from a bounced message.This module is also useful for other small payloads that require the same kind of escaping. Requirements: · Perl


Crypt::VERPString Related Software