This commit is contained in:
TLINDEN
2015-08-04 20:45:43 +02:00
parent 4e5879de16
commit c062fee463
2 changed files with 6 additions and 3 deletions

View File

@@ -3,6 +3,9 @@ NEXT: Records created by Crypt::PWSafe3 (eg. the ones fetched
object, so that you can modify them directly and call
$vault->save afterwards without using $vault->modifyrecord.
erase passwd from memory using zeros instead of
random bytes. fixes github#9.
1.21:
forgot to load File::Spec

View File

@@ -153,7 +153,7 @@ sub stretchpw {
$sha->add( ( $stretched) );
$stretched = $sha->digest();
}
$passwd = $this->random(64);
$passwd = 0 x 64;
return $stretched;
}