func_encrypt_nossl.test
来自「这是linux下运行的mysql软件包,可用于linux 下安装 php + m」· TEST 代码 · 共 39 行
TEST
39 行
-- source include/not_openssl.inc## Test output from des_encrypt and des_decrypt when server is# compiled without openssl suuport#select des_encrypt("test", 'akeystr');select des_encrypt("test", 1);select des_encrypt("test", 9);select des_encrypt("test", 100);select des_encrypt("test", NULL);select des_encrypt(NULL, NULL);select des_decrypt("test", 'anotherkeystr');select des_decrypt(1, 1);select des_decrypt(des_encrypt("test", 'thekey'));## Test default keys#select hex(des_encrypt("hello")),des_decrypt(des_encrypt("hello"));select des_decrypt(des_encrypt("hello",4));select des_decrypt(des_encrypt("hello",'test'),'test');select hex(des_encrypt("hello")),hex(des_encrypt("hello",5)),hex(des_encrypt("hello",'default_password'));select des_decrypt(des_encrypt("hello"),'default_password');select des_decrypt(des_encrypt("hello",4),'password4');# Test flushSET @a=des_decrypt(des_encrypt("hello"));flush des_key_file;select @a = des_decrypt(des_encrypt("hello"));# Test usage of wrong passwordselect hex("hello");select hex(des_decrypt(des_encrypt("hello",4),'password2'));select hex(des_decrypt(des_encrypt("hello","hidden")));# End of 4.1 tests
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?