Crypt::AllOrNothing - All-Or-Nothing Encryption


Crypt-AllOrNothing documentation  | view source Contained in the Crypt-AllOrNothing distribution.

Index


NAME

Top

Crypt::AllOrNothing - All-Or-Nothing Encryption

VERSION

Top

Version 0.10

SYNOPSIS

Top

  use Crypt::AllOrNothing;

  my $AllOrNothing = Crypt::AllOrNothing->new(K_0=>$K_0);
  my $K_0 = $AllOrNothing->get_K_0();
  my $K_0 = $AllOrNothing->set_K_0($K_0);
  my $size = $AllOrNothing->get_size();
  my @AllOrNothing_text = $AllOrNothing->encrypt(text=>$plaintext);
  my $plaintext = $AllOrNothing->decrypt(text=>@AllOrNothing_text);

CONSTANTS

Top

  $SIZE = 128 bits;

FUNCTIONS

Top

new(K_0=>$K_0)

Create AllOrNothing object. Good idea to provide K_0, which must be ascii encoded(characters) and of length given in size. If K_0 is not given, you must retrieve it later with $AllOrNothing->K_0() else you will not be able to decrypt the message.

K_0(K_0=>$K_0)

get/set K_0. K_0 must be ascii encoded(characters) and length given in size.

size()

get size.

@ciphertext = encrypt(plaintext=>$plaintext, padding=>$padding)

encrypt plaintext with All Or Nothing transform to array of messages. Optionally pass padding which will be used internally

$plaintext = decrypt(cryptotext=>\@cryptotext)

decrypt cryptotext array with All Or Nothing transform to plaintext

AUTHOR

Top

Timothy Zander, <timothy.zander at alum.rpi.edu>

The All Or Nothing Encryption and Package Transform algorithm was developed by Ronald Rivest

BUGS

Top

Please report any bugs or feature requests to bug-crypt-aon at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Crypt-AllOrNothing. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

Top

You can find documentation for this module with the perldoc command.

  perldoc Crypt::AllOrNothing

You can also look for information at:

* Original Paper by Ronald Rivest

http://people.csail.mit.edu/rivest/fusion.pdf

* AnnoCPAN: Annotated CPAN documentation

http://annocpan.org/dist/Crypt-AllOrNothing

* CPAN Ratings

http://cpanratings.perl.org/d/Crypt-AllOrNothing

* RT: CPAN's request tracker

http://rt.cpan.org/NoAuth/Bugs.html?Dist=Crypt-AllOrNothing

* Search CPAN

http://search.cpan.org/dist/Crypt-AllOrNothing

ACKNOWLEDGEMENTS

Top

Thanks to Prof. Bulent Yener at RPI for his assistance.

COPYRIGHT & LICENSE

Top


Crypt-AllOrNothing documentation  | view source Contained in the Crypt-AllOrNothing distribution.