The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Crypt::AON - All-Or-Nothing Encryption

VERSION

Version 0.03

SYNOPSIS

    use Crypt::AON;

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

CONSTANTS

$SIZE = 128;

FUNCTIONS

new(K_0=>$K_0) Create AON 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 $AON->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

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

BUGS

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-AON. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

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

    perldoc Crypt::AON

You can also look for information at:

ACKNOWLEDGEMENTS

COPYRIGHT & LICENSE

Copyright 2007 Timothy Zander, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.