Aut
view release on metacpan or search on metacpan
Aut/Ticket.pm view on Meta::CPAN
=back
=head2 Setting
=head3 C<invalidate() --E<gt> void>
=over 1
Invalidates a ticket.
=back
=head3 C<set_rights(_rights) --E<gt> void>
=over 1
Sets the rights value of the ticket to _rights.
=back
=head3 C<set_pass(_pass) --E<gt> void>
=over 1
Sets the password of the ticket to _pass.
=back
=head3 C<set_seed(_seed) --E<gt> void>
=over 1
Sets the seed value of the ticket (the encryption key) to _seed.
=back
=head3 C<set(var,val) --E<gt> void>
=over 1
Sets a variable 'var' in the ticket to value 'val'.
=back
=head2 Encryption/Decryption
=head3 C<encrypt(text) --E<gt> base64 string>
=over 1
Encrypts text using L<Aut::Crypt>, with key C<seed()>; returns
a base64 encoded (with L<Aut::Base64>) encrypted string.
=back
=head3 C<decrypt(ciphertext) --E<gt> string>
=over 1
Decrypts text using L<Aut::Crypt>, after it has been decoded
with L<Aut::Base64>. If the decryption is valid, it returns
the decrypted string, otherwise C<undef> is returned.
=head1 SEE ALSO
L<Aut framework|Aut>, L<Aut::Base64|Aut::Base64>, L<Aut::Crypt|Aut::Crypt>.
=head1 AUTHOR
Hans Oesterholt-Dijkema <oesterhol@cpan.org>
=head1 COPYRIGHT AND LICENSE
This library is free software; you can redistribute it and/or modify
it under Artistic license.
=cut
( run in 1.592 second using v1.01-cache-2.11-cpan-600a1bdf6e4 )