summaryrefslogtreecommitdiffstats
path: root/contrib/pgcrypto/sql/sha1.sql
blob: 32b1f0698fd7f3ef962fefad22115509352cb3d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
--
-- 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');