| 1 | package Password::Policy::Encryption::ROT13; | ||
| 2 | 2 | $Password::Policy::Encryption::ROT13::VERSION = '0.06'; | |
| 3 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 2 | ▶ | use parent 'Password::Policy::Encryption'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 2 | ▶ | use String::Multibyte; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 6 | ▶ | sub enc { |
|
Subroutine
enc: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 11 | 6 | my $self = shift; | |
| 12 | 6 | my $password = $self->prepare(shift); | |
| 13 | 5 | my $strmb = String::Multibyte->new('UTF8'); | |
| 14 | 5 | return $strmb->strrev($password); | |
| 15 | } | ||
| 16 | |||
| 17 | 2 | 1; | |
| 18 | |||
| 19 | __END__ | ||