1
drop table if exists t1;
2
select length(encrypt('foo', 'ff')) <> 0;
3
length(encrypt('foo', 'ff')) <> 0
5
create table t1 (name varchar(50), pw varchar(64));
6
insert into t1 values ('tom', password('my_pass'));
8
select name from t1 where name='tom' and pw=password(@pass);
11
select name from t1 where name='tom' and pw=password(@undefined);
14
select password('abc');
16
*0D3CED9BEC10A777AEC23CCC353A8C08A633045E
20
select old_password('abc');
23
select old_password('');
26
select password('gabbagabbahey');
27
password('gabbagabbahey')
28
*B0F99D2963660DD7E16B751EC9EE2F17B6A68FA6
29
select old_password('idkfa');
32
select length(password('1'));
35
select length(encrypt('test'));
36
length(encrypt('test'))
38
select encrypt('test','aa');
41
select old_password(NULL);
44
select password(NULL);
47
set global old_passwords=on;
51
select old_password('');
54
select password('idkfa');
56
*B669C9DAC3AA6F2254B03CDEF8DFDD6B2D1054BA
57
select old_password('idkfa');
61
select password('idkfa');
64
select old_password('idkfa');
67
set global old_passwords=off;
68
select password('idkfa');
71
select old_password('idkfa');
74
set old_passwords=off;
75
select password('idkfa ');
77
*2DC31D90647B4C1ABC9231563D2236E96C9A2DB2
78
select password('idkfa');
80
*B669C9DAC3AA6F2254B03CDEF8DFDD6B2D1054BA
81
select password(' idkfa');
83
*12B099E56BB7FE8D43C78FD834A9D1D11178D045
84
select old_password('idkfa');
87
select old_password(' i d k f a ');
88
old_password(' i d k f a ')
90
explain extended select password('idkfa '), old_password('idkfa');
91
id select_type table type possible_keys key key_len ref rows filtered Extra
92
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
94
Note 1003 select password('idkfa ') AS "password('idkfa ')",old_password('idkfa') AS "old_password('idkfa')"
95
select encrypt('1234','_.');