select length(encrypt('foo', 'ff')) <> 0; length(encrypt('foo', 'ff')) <> 0 1 select old_password('test'), password('test'); old_password('test') password('test') 378b243e220ca493 378b243e220ca493 select length(encrypt('test')), encrypt('test','aa'); length(encrypt('test')) encrypt('test','aa') 13 aaqPiZY5xR5l.