2003-01-28 08:38:28 +02:00
|
|
|
-- source include/have_crypt.inc
|
|
|
|
|
2001-05-23 02:30:17 +03:00
|
|
|
select length(encrypt('foo', 'ff')) <> 0;
|
2001-12-13 15:53:18 +02:00
|
|
|
--replace_result $1$aa$4OSUA5cjdx0RUQ08opV27/ aaqPiZY5xR5l.
|
2003-02-07 17:57:07 +02:00
|
|
|
select old_password('test'), password('test');
|
|
|
|
select length(encrypt('test')), encrypt('test','aa');
|
2003-10-21 15:14:06 +05:00
|
|
|
|
|
|
|
drop table if exists t1;
|
|
|
|
create table t1 (name varchar(50), pw varchar(16));
|
|
|
|
insert into t1 values ('tom', password('my_pass'));
|
|
|
|
set @pass='my_pass';
|
|
|
|
select name from t1 where name='tom' and pw=password(@pass);
|
|
|
|
select name from t1 where name='tom' and pw=password(@undefined);
|
|
|
|
drop table t1;
|
|
|
|
|