mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-21 23:13:23 +02:00
13 lines
511 B
MySQL
13 lines
511 B
MySQL
|
--
|
||
|
-- SHA1 message digest
|
||
|
--
|
||
|
|
||
|
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');
|
||
|
|