-key => $SALT,
-cipher => 'Blowfish'
);
return $cipher->encrypt(to_json($session));
}
sub _password_hash {
my ($self, $key, $password) = @_;
utf8::encode($key)
-key => $SALT,
-cipher => 'Blowfish'
);
try {
$session = from_json($cipher->decrypt($session));
}
catch {
throw Exception::Authorization::BadSession