diff options
author | unknown <tonu@volk.internalnet> | 2001-11-26 15:54:33 +0200 |
---|---|---|
committer | unknown <tonu@volk.internalnet> | 2001-11-26 15:54:33 +0200 |
commit | a2cafe2cdca257317b6fd339545579f5f8e9bbe3 (patch) | |
tree | 9b1bef0fedd5ece3b9583cf6137d570e4c4de1a2 /mysql-test/t/func_encrypt.test | |
parent | 7fbb09f4bbfb90e04a00d1b2ce327c2e5039081a (diff) | |
download | mariadb-git-a2cafe2cdca257317b6fd339545579f5f8e9bbe3.tar.gz |
des_encrypt()/des_decrypt() are now ASCII protected and pass testsuite
Diffstat (limited to 'mysql-test/t/func_encrypt.test')
-rw-r--r-- | mysql-test/t/func_encrypt.test | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/mysql-test/t/func_encrypt.test b/mysql-test/t/func_encrypt.test new file mode 100644 index 00000000000..ac4ab55b4dd --- /dev/null +++ b/mysql-test/t/func_encrypt.test @@ -0,0 +1,46 @@ +-- source include/have_openssl.inc + +use test; +drop table if exists x; +create table x (x blob); +insert into x values (des_encrypt('The quick red fox jumped over the lazy brown dog','The quick red fox jumped over the lazy brown dog')); +insert into x values (des_encrypt('a','The quick red fox jumped over the lazy brown dog')); +insert into x values (des_encrypt('The quick red fox jumped over the lazy brown dog','a')); +insert into x values (des_encrypt('ab','The quick red fox jumped over the lazy brown dog')); +insert into x values (des_encrypt('The quick red fox jumped over the lazy brown dog','ab')); +insert into x values (des_encrypt('abc','The quick red fox jumped over the lazy brown dog')); +insert into x values (des_encrypt('The quick red fox jumped over the lazy brown dog','abc')); +insert into x values (des_encrypt('abcd','The quick red fox jumped over the lazy brown dog')); +insert into x values (des_encrypt('The quick red fox jumped over the lazy brown dog','abcd')); +insert into x values (des_encrypt('abcde','The quick red fox jumped over the lazy brown dog')); +insert into x values (des_encrypt('The quick red fox jumped over the lazy brown dog','abcde')); +insert into x values (des_encrypt('abcdef','The quick red fox jumped over the lazy brown dog')); +insert into x values (des_encrypt('The quick red fox jumped over the lazy brown dog','abcdef')); +insert into x values (des_encrypt('abcdefg','The quick red fox jumped over the lazy brown dog')); +insert into x values (des_encrypt('The quick red fox jumped over the lazy brown dog','abcdefg')); +insert into x values (des_encrypt('abcdefgh','The quick red fox jumped over the lazy brown dog')); +insert into x values (des_encrypt('The quick red fox jumped over the lazy brown dog','abcdefgh')); +insert into x values (des_encrypt('abcdefghi','The quick red fox jumped over the lazy brown dog')); +insert into x values (des_encrypt('The quick red fox jumped over the lazy brown dog','abcdefghi')); +insert into x values (des_encrypt('abcdefghij','The quick red fox jumped over the lazy brown dog')); +insert into x values (des_encrypt('The quick red fox jumped over the lazy brown dog','abcdefghij')); +insert into x values (des_encrypt('abcdefghijk','The quick red fox jumped over the lazy brown dog')); +insert into x values (des_encrypt('The quick red fox jumped over the lazy brown dog','abcdefghijk')); +insert into x values (des_encrypt('The quick red fox jumped over the lazy brown dog','sabakala')); +insert into x values (des_encrypt('quick red fox jumped over the lazy brown dog','sabakala')); +insert into x values (des_encrypt('red fox jumped over the lazy brown dog','sabakala')); +insert into x values (des_encrypt('fox jumped over the lazy brown dog','sabakala')); +insert into x values (des_encrypt('jumped over the lazy brown dog','sabakala')); +insert into x values (des_encrypt('over the lazy brown dog','sabakala')); +insert into x values (des_encrypt('the lazy brown dog','sabakala')); +insert into x values (des_encrypt('lazy brown dog','sabakala')); +insert into x values (des_encrypt('brown dog','sabakala')); +insert into x values (des_encrypt('dog','sabakala')); +insert into x values (des_encrypt('jumped over the lazy brown dog','sabakala')); +insert into x values (des_encrypt('jumped over the lazy brown dog','sabakala')); +insert into x values (des_encrypt('jumped over the lazy brown dog','sabakala')); +select * from x; +select des_decrypt(x,'sabakala') from x; +#drop table x; + + |