Syntax
SHA(str)
Purpose
SHA() calculates and returns the 160-bit SHA-1 checksum for a given string. The result is returned as a string of 40 hexadecimal digits. This function is equivalent to the SHA1() function.
Examples
obclient [test]> SELECT SHA('OB');
+------------------------------------------+
| SHA('OB') |
+------------------------------------------+
| 29a6de2fd8618f31afb281a608c57995b7eb105d |
+------------------------------------------+
1 row in set