aboutsummaryrefslogtreecommitdiff
path: root/contrib/pgcrypto/expected/crypt-xdes.out
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/pgcrypto/expected/crypt-xdes.out')
-rw-r--r--contrib/pgcrypto/expected/crypt-xdes.out26
1 files changed, 26 insertions, 0 deletions
diff --git a/contrib/pgcrypto/expected/crypt-xdes.out b/contrib/pgcrypto/expected/crypt-xdes.out
new file mode 100644
index 00000000000..d247b552b2f
--- /dev/null
+++ b/contrib/pgcrypto/expected/crypt-xdes.out
@@ -0,0 +1,26 @@
+--
+-- crypt() and gen_salt(): extended des
+--
+select crypt('', '_J9..j2zz');
+ crypt
+----------------------
+ _J9..j2zzR/nIRDK3pPc
+(1 row)
+
+select crypt('foox', '_J9..j2zz');
+ crypt
+----------------------
+ _J9..j2zzAYKMvO2BYRY
+(1 row)
+
+create table ctest (data text, res text, salt text);
+insert into ctest values ('password', '', '');
+update ctest set salt = gen_salt('xdes', 1001);
+update ctest set res = crypt(data, salt);
+select res = crypt(data, res) as "worked" from ctest;
+ worked
+--------
+ t
+(1 row)
+
+drop table ctest;