SHA

description

Use SHA1 to digest the message.

Syntax

SHA(str) or SHA1(str)

Arguments

  • str: content to be encrypted

example

  1. mysql> select sha("123");
  2. +------------------------------------------+
  3. | sha1('123') |
  4. +------------------------------------------+
  5. | 40bd001563085fc35165329ea1ff5c5ecbdbbeef |
  6. +------------------------------------------+
  7. 1 row in set (0.13 sec)

keywords

  1. SHA,SHA1