1 -- source include/have_ssl.inc
3 # This test can't be in func_encrypt.test, because it requires
4 # --des-key-file to not be set.
7 # Bug #11643: des_encrypt() causes server to die
9 select des_encrypt('hello');
14 --echo # Bug #11643: des_encrypt() causes server to die
17 CREATE TABLE t1 (des VARBINARY(200) NOT NULL DEFAULT '') ENGINE=MyISAM;
19 INSERT INTO t1 VALUES ('1234'), ('12345'), ('123456'), ('1234567');
21 UPDATE t1 SET des=DES_ENCRYPT('1234');
23 SELECT LENGTH(des) FROM t1;
24 SELECT DES_DECRYPT(des) FROM t1;
27 LENGTH(DES_ENCRYPT('1234')),
28 LENGTH(DES_ENCRYPT('12345')),
29 LENGTH(DES_ENCRYPT('123456')),
30 LENGTH(DES_ENCRYPT('1234567'));
32 DES_DECRYPT(DES_ENCRYPT('1234')),
33 DES_DECRYPT(DES_ENCRYPT('12345')),
34 DES_DECRYPT(DES_ENCRYPT('123456')),
35 DES_DECRYPT(DES_ENCRYPT('1234567'));
39 --Echo End of 5.0 tests