A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.w3resource.com/mysql/encryption-and-compression-functions/sha1().php below:

Website Navigation


MySQL sha1() - w3resource

MySQL SHA1() functionLast update on August 08 2023 12:40:20 (UTC/GMT +8 hours) SHA1() function

MySQL sha1() function calculates an SHA-1 160-bit checksum for a string.

The function returns a value as a binary string of 40 hex digits. If the string supplied as the argument is NULL, the function returns NULL.

Syntax:

SHA1(str)

Argument:

Name Description str A string.

Syntax Diagram:

MySQL Version: 8.0

Example:

Code:

SELECT SHA1('w3resource');

Explanation:

The above MySQL statement returns SHA1 checksum of w3resouce string. The return value is d228359c41174cede6b3c401eb8d11746a4ad1eb.

Output:

mysql> SELECT SHA1('w3resource');
+------------------------------------------+
| SHA1('w3resource')                       |
+------------------------------------------+
| d228359c41174cede6b3c401eb8d11746a4ad1eb | 
+------------------------------------------+
1 row in set (0.00 sec)

Previous: PASSWORD()
Next: UNCOMPRESS()




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4