2
-- crypt() and gen_salt(): extended des
4
SELECT crypt('', '_J9..j2zz');
10
SELECT crypt('foox', '_J9..j2zz');
12
----------------------
16
CREATE TABLE ctest (data text, res text, salt text);
17
INSERT INTO ctest VALUES ('password', '', '');
18
UPDATE ctest SET salt = gen_salt('xdes', 1001);
19
UPDATE ctest SET res = crypt(data, salt);
20
SELECT res = crypt(data, res) AS "worked"