mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-25 05:57:19 +02:00
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');
|