| 1 | package Password::Policy::Encryption::MD5; | ||
| 2 | { | ||
| 3 | 2 | $Password::Policy::Encryption::MD5::VERSION = '0.02'; | |
| 4 | } | ||
| 5 | |||
| 6 | # ABSTRACT: The MD5 algorithm for Password::Policy | ||
| 7 | |||
| 8 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 2 | ▶ | use parent 'Password::Policy::Encryption'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | 2 | ▶ | use Digest::MD5 qw/md5_hex/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | |||
| 15 | 5 | ▶ | sub enc { |
|
Subroutine
enc: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 16 | 5 | my $self = shift; | |
| 17 | 5 | my $password = $self->prepare(shift); | |
| 18 | 4 | return md5_hex($password); | |
| 19 | } | ||
| 20 | |||
| 21 | 2 | 1; | |
| 22 | |||
| 23 | |||
| 24 | |||
| 25 | =pod | ||
| 26 | |||
| 27 | =head1 NAME | ||
| 28 | |||
| 29 | Password::Policy::Encryption::MD5 - The MD5 algorithm for Password::Policy | ||
| 30 | |||
| 31 | =head1 VERSION | ||
| 32 | |||
| 33 | version 0.02 | ||
| 34 | |||
| 35 | =head1 AUTHOR | ||
| 36 | |||
| 37 | Andrew Nelson <anelson@cpan.org> | ||
| 38 | |||
| 39 | =head1 COPYRIGHT AND LICENSE | ||
| 40 | |||
| 41 | This software is copyright (c) 2012 by Andrew Nelson. | ||
| 42 | |||
| 43 | This is free software; you can redistribute it and/or modify it under | ||
| 44 | the same terms as the Perl 5 programming language system itself. | ||
| 45 | |||
| 46 | =cut | ||
| 47 | |||
| 48 | |||
| 49 | __END__ | ||