ParagonIE_Sodium_Compat::crypto_shorthash_keygen() public WP 1.0
Return a secure random key for use with crypto_shorthash
{} Это метод класса: ParagonIE_Sodium_Compat{}
Хуков нет.
Возвращает
Строку.
Использование
$result = ParagonIE_Sodium_Compat::crypto_shorthash_keygen();
Код ParagonIE_Sodium_Compat::crypto_shorthash_keygen() ParagonIE Sodium Compat::crypto shorthash keygen WP 5.6.2
public static function crypto_shorthash_keygen()
{
return random_bytes(self::CRYPTO_SHORTHASH_KEYBYTES);
}