mirror of
https://codeberg.org/scip/Crypt--PWSafe3.git
synced 2025-12-16 20:21:01 +01:00
fix #9
This commit is contained in:
@@ -3,6 +3,9 @@ NEXT: Records created by Crypt::PWSafe3 (eg. the ones fetched
|
|||||||
object, so that you can modify them directly and call
|
object, so that you can modify them directly and call
|
||||||
$vault->save afterwards without using $vault->modifyrecord.
|
$vault->save afterwards without using $vault->modifyrecord.
|
||||||
|
|
||||||
|
erase passwd from memory using zeros instead of
|
||||||
|
random bytes. fixes github#9.
|
||||||
|
|
||||||
1.21:
|
1.21:
|
||||||
forgot to load File::Spec
|
forgot to load File::Spec
|
||||||
|
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ sub stretchpw {
|
|||||||
$sha->add( ( $stretched) );
|
$sha->add( ( $stretched) );
|
||||||
$stretched = $sha->digest();
|
$stretched = $sha->digest();
|
||||||
}
|
}
|
||||||
$passwd = $this->random(64);
|
$passwd = 0 x 64;
|
||||||
return $stretched;
|
return $stretched;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user