Skip to content
This repository has been archived by the owner on May 15, 2021. It is now read-only.

Commit

Permalink
✨ added keypair setters
Browse files Browse the repository at this point in the history
  • Loading branch information
codemasher committed Jan 28, 2018
1 parent ec3914d commit 4b07ded
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Crypto/MemzeroDestructorTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ trait MemzeroDestructorTrait{
*/
public function __destruct(){

if(!function_exists('sodium_memzero')){
return;
}

foreach(array_keys(get_object_vars($this)) as $key){

if(is_scalar($this->{$key})){
Expand Down

0 comments on commit 4b07ded

Please sign in to comment.