2001-10-02 00:12:23 +08:00
|
|
|
--
|
|
|
|
-- SHA1 message digest
|
|
|
|
--
|
|
|
|
|
2002-10-19 02:41:22 +08:00
|
|
|
SELECT encode(digest('', 'sha1'), 'hex');
|
|
|
|
SELECT encode(digest('a', 'sha1'), 'hex');
|
|
|
|
SELECT encode(digest('abc', 'sha1'), 'hex');
|
|
|
|
SELECT encode(digest('message digest', 'sha1'), 'hex');
|
|
|
|
SELECT encode(digest('abcdefghijklmnopqrstuvwxyz', 'sha1'), 'hex');
|
|
|
|
SELECT encode(digest('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789', 'sha1'), 'hex');
|
|
|
|
SELECT encode(digest('12345678901234567890123456789012345678901234567890123456789012345678901234567890', 'sha1'), 'hex');
|
2001-10-02 00:12:23 +08:00
|
|
|
|