mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-24 18:55:04 +08:00
814e1d9ff7
This was from before the hex format was available in bytea. Now we can remove the extra explicit encoding/decoding calls and rely on the default output format. Discussion: https://www.postgresql.org/message-id/flat/17dcb4f7-7ac1-e2b6-d5f7-2dfba06cd9ee%40enterprisedb.com
12 lines
405 B
SQL
12 lines
405 B
SQL
--
|
|
-- SHA1 message digest
|
|
--
|
|
|
|
SELECT digest('', 'sha1');
|
|
SELECT digest('a', 'sha1');
|
|
SELECT digest('abc', 'sha1');
|
|
SELECT digest('message digest', 'sha1');
|
|
SELECT digest('abcdefghijklmnopqrstuvwxyz', 'sha1');
|
|
SELECT digest('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789', 'sha1');
|
|
SELECT digest('12345678901234567890123456789012345678901234567890123456789012345678901234567890', 'sha1');
|