Топ-100
 

CREATE_DIGEST

База данных: MySQL
Текст

Syntax:
create_digest(digest_type, str)

Creates a digest from the given string using the given digest type, and
returns the digest as a binary string. If digest generation fails, the
result is NULL.

Supported digest_type values: 'SHA224', 'SHA256', 'SHA384', 'SHA512'

URL: https://dev.mysql.com/doc/refman/8.0/en/enterprise-encryption-functions.html

Пример

SET @dig = create_digest('SHA512', The quick brown fox');