File tree 1 file changed +1
-3
lines changed
1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -66,8 +66,6 @@ public static function sha512(string $data, bool $binary = false):string{
66
66
/**
67
67
* Generates a secure random string of the given $length, using the characters (8-bit byte) in the given $keyspace.
68
68
*
69
- * @throws \Random\RandomException
70
- *
71
69
* @noinspection PhpFullyQualifiedNameUsageInspection
72
70
* @SuppressWarnings(PHPMD.MissingImport)
73
71
*/
@@ -105,7 +103,7 @@ public static function createEncryptionKey():string{
105
103
* @see \sodium_bin2base64()
106
104
* @see \sodium_bin2hex()
107
105
*
108
- * @throws \SodiumException|\Random\RandomException
106
+ * @throws \SodiumException
109
107
*/
110
108
public static function encrypt (string $ data , string $ keyHex , int $ format = self ::ENCRYPT_FORMAT_HEX ):string {
111
109
$ nonce = random_bytes (SODIUM_CRYPTO_SECRETBOX_NONCEBYTES );
You can’t perform that action at this time.
0 commit comments