1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

Add missing pgcrypto files.

This commit is contained in:
Bruce Momjian
2001-10-01 16:12:23 +00:00
parent 998cebc4db
commit 43cadb9231
22 changed files with 837 additions and 0 deletions

View File

@ -0,0 +1,17 @@
--
-- crypt() and gen_salt(): crypt-des
--
select crypt('', 'NB');
select crypt('foox', 'NB');
create table ctest (data text, res text, salt text);
insert into ctest values ('password', '', '');
update ctest set salt = gen_salt('des');
update ctest set res = crypt(data, salt);
select res = crypt(data, res) as "worked" from ctest;
drop table ctest;