2 -- crypt() and gen_salt(): md5
5 SELECT crypt('', '$1$Szzz0yzz');
7 SELECT crypt('foox', '$1$Szzz0yzz');
9 CREATE TABLE ctest (data text, res text, salt text);
10 INSERT INTO ctest VALUES ('password', '', '');
12 UPDATE ctest SET salt = gen_salt('md5');
13 UPDATE ctest SET res = crypt(data, salt);
14 SELECT res = crypt(data, res) AS "worked"