kevin brintnall > Crypt-Juniper-0.01 > Crypt::Juniper

Download:
Crypt-Juniper-0.01.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.01   Source   Latest Release: Crypt-Juniper-0.02

NAME ^

Crypt::Juniper - Encrypt/decrypt Juniper $9$ secrets

VERSION ^

Version 0.01

SYNOPSIS ^

    use Crypt::Juniper;
    my $secret = juniper_decrypt('$9$LbHX-wg4Z');  ## $secret="lc";
    my $crypt = juniper_encrypt('lc');             ## encrypt it

EXPORTED FUNCTIONS ^

juniper_decrypt($crypt)

Decrypt the string $crypt, returning the corresponding plain-text. Input string must be of the format "$9$blahblah". If the input string is not in a recognized format, the function throws a warning and returns undef.

juniper_encrypt($secret)

Encrypt the plain text $secret, returning a result suitable for inclusion in a Juniper configuration.

AUTHOR ^

kevin brintnall, <kbrint at rufus.net>

COPYRIGHT & LICENSE ^

Copyright 2008 kevin brintnall, all rights reserved.

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