File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 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{
6666 /**
6767 * Generates a secure random string of the given $length, using the characters (8-bit byte) in the given $keyspace.
6868 *
69- * @throws \Random\RandomException
70- *
7169 * @noinspection PhpFullyQualifiedNameUsageInspection
7270 * @SuppressWarnings(PHPMD.MissingImport)
7371 */
@@ -105,7 +103,7 @@ public static function createEncryptionKey():string{
105103 * @see \sodium_bin2base64()
106104 * @see \sodium_bin2hex()
107105 *
108- * @throws \SodiumException|\Random\RandomException
106+ * @throws \SodiumException
109107 */
110108 public static function encrypt (string $ data , string $ keyHex , int $ format = self ::ENCRYPT_FORMAT_HEX ):string {
111109 $ nonce = random_bytes (SODIUM_CRYPTO_SECRETBOX_NONCEBYTES );
You can’t perform that action at this time.
0 commit comments