| 1 | package Crypt::Passphrase::PassphraseHash; | ||
| 2 | 1 | $Crypt::Passphrase::PassphraseHash::VERSION = '0.024'; | |
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 0 | ▶ | sub new { |
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 7 | 0 | my ($class, $validator, $raw_hash) = @_; | |
| 8 | |||
| 9 | 0 | return bless { | |
| 10 | validator => $validator, | ||
| 11 | raw_hash => $raw_hash, | ||
| 12 | }, $class; | ||
| 13 | } | ||
| 14 | |||
| 15 | 0 | ▶ | sub verify_password { |
|
Subroutine
verify_password: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 16 | 0 | my ($self, $password) = @_; | |
| 17 | 0 | return $self->{validator}->verify_password($password, $self->{raw_hash}); | |
| 18 | } | ||
| 19 | |||
| 20 | 0 | ▶ | sub needs_rehash { |
|
Subroutine
needs_rehash: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 21 | 0 | my $self = shift; | |
| 22 | 0 | return $self->{validator}->needs_rehash($self->{raw_hash}); | |
| 23 | } | ||
| 24 | |||
| 25 | 0 | ▶ | sub raw_hash { |
|
Subroutine
raw_hash: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 26 | 0 | my $self = shift; | |
| 27 | 0 | return $self->{raw_hash}; | |
| 28 | } | ||
| 29 | |||
| 30 | 1 | 1; | |
| 31 | |||
| 32 | # ABSTRACT: An object representing a hash for password checking | ||
| 33 | |||
| 34 | __END__ | ||