メインコンテンツまでスキップ
バージョン: 2.1

SHA1

説明

SHA1アルゴリズムを使用して情報をダイジェストします。

エイリアス

SHA

構文

SHA1( <str> )

パラメータ

parameterdescription
<str>計算対象のsha1値

Return Value

入力文字列のsha1値を返します

Examples

select sha("123"), sha1("123");
+------------------------------------------+------------------------------------------+
| sha1('123') | sha1('123') |
+------------------------------------------+------------------------------------------+
| 40bd001563085fc35165329ea1ff5c5ecbdbbeef | 40bd001563085fc35165329ea1ff5c5ecbdbbeef |
+------------------------------------------+------------------------------------------+