Esempio n. 1
0
 public static function CreateKeyBasedOnPassword($password, $salt)
 {
     return Key::CreateKey(function ($size) use($password, $salt) {
         return hash_pbkdf2('sha256', $password, $salt, 100000, $size, true);
     });
 }