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.
|
2002-12-27 19:47:23 +03:00
|
|
|
|
|
|
|
# Test new and old password handling functions
|
|
|
|
select password("a",""), password("a",NULL), password("","a"), password(NULL,"a");
|
|
|
|
select password("aaaaaaaaaaaaaaaa","a"), password("a","aaaaaaaaaaaaaaaa");
|
|
|
|
select old_password('test'), length(password("1")), length(encrypt('test')), encrypt('test','aa');
|
|
|
|
select old_password(""), old_password(NULL), password(""), password(NULL);
|