func_crypt.result
上传用户:romrleung
上传日期:2022-05-23
资源大小:18897k
文件大小:2k
源码类别:

MySQL数据库

开发平台:

Visual C++

  1. drop table if exists t1;
  2. select length(encrypt('foo', 'ff')) <> 0;
  3. length(encrypt('foo', 'ff')) <> 0
  4. 1
  5. create table t1 (name varchar(50), pw varchar(64));
  6. insert into t1 values ('tom', password('my_pass'));
  7. set @pass='my_pass';
  8. select name from t1 where name='tom' and pw=password(@pass);
  9. name
  10. tom
  11. select name from t1 where name='tom' and pw=password(@undefined);
  12. name
  13. drop table t1;
  14. select password('abc');
  15. password('abc')
  16. *0D3CED9BEC10A777AEC23CCC353A8C08A633045E
  17. select password('');
  18. password('')
  19. select old_password('abc');
  20. old_password('abc')
  21. 7cd2b5942be28759
  22. select old_password('');
  23. old_password('')
  24. select password('gabbagabbahey');
  25. password('gabbagabbahey')
  26. *B0F99D2963660DD7E16B751EC9EE2F17B6A68FA6
  27. select old_password('idkfa');
  28. old_password('idkfa')
  29. 5c078dc54ca0fcca
  30. select length(password('1'));
  31. length(password('1'))
  32. 41
  33. select length(encrypt('test'));
  34. length(encrypt('test'))
  35. 13
  36. select encrypt('test','aa');
  37. encrypt('test','aa')
  38. aaqPiZY5xR5l.
  39. select old_password(NULL);
  40. old_password(NULL)
  41. NULL
  42. select password(NULL);
  43. password(NULL)
  44. NULL
  45. set global old_passwords=on;
  46. select password('');
  47. password('')
  48. select old_password('');
  49. old_password('')
  50. select password('idkfa');
  51. password('idkfa')
  52. *B669C9DAC3AA6F2254B03CDEF8DFDD6B2D1054BA
  53. select old_password('idkfa');
  54. old_password('idkfa')
  55. 5c078dc54ca0fcca
  56. set old_passwords=on;
  57. select password('idkfa');
  58. password('idkfa')
  59. 5c078dc54ca0fcca
  60. select old_password('idkfa');
  61. old_password('idkfa')
  62. 5c078dc54ca0fcca
  63. set global old_passwords=off;
  64. select password('idkfa');
  65. password('idkfa')
  66. 5c078dc54ca0fcca
  67. select old_password('idkfa');
  68. old_password('idkfa')
  69. 5c078dc54ca0fcca
  70. set old_passwords=off;
  71. select password('idkfa ');
  72. password('idkfa ')
  73. *2DC31D90647B4C1ABC9231563D2236E96C9A2DB2
  74. select password('idkfa');
  75. password('idkfa')
  76. *B669C9DAC3AA6F2254B03CDEF8DFDD6B2D1054BA
  77. select password(' idkfa');
  78. password(' idkfa')
  79. *12B099E56BB7FE8D43C78FD834A9D1D11178D045
  80. select old_password('idkfa');
  81. old_password('idkfa')
  82. 5c078dc54ca0fcca
  83. select old_password(' i   d k f a ');
  84. old_password(' i   d k f a ')
  85. 5c078dc54ca0fcca
  86. explain extended select password('idkfa '), old_password('idkfa');
  87. id select_type table type possible_keys key key_len ref rows Extra
  88. 1 SIMPLE NULL NULL NULL NULL NULL NULL NULL No tables used
  89. Warnings:
  90. Note 1003 select password(_latin1'idkfa ') AS `password('idkfa ')`,old_password(_latin1'idkfa') AS `old_password('idkfa')`
  91. select encrypt('1234','_.');
  92. encrypt('1234','_.')
  93. #