- create or replace function F_GG_TOMD5(input_string VARCHAR2) return varchar2 is
- raw_input RAW(128) := UTL_RAW.CAST_TO_RAW(input_string);
- decrypted_raw RAW(2048);
- error_in_input_buffer_length EXCEPTION;
- BEGIN
- --dbms_output.put_line(sysdate || '> 加密前的数据:' || input_string);
- sys.dbms_obfuscation_toolkit.MD5(input => raw_input,
- checksum => decrypted_raw);
- --dbms_output.put_line(sysdate || '> 加密后的数据:' || rawtohex(decrypted_raw));
- return lower(rawtohex(decrypted_raw));
- end F_GG_TOMD5;
oracle md5加密
最新推荐文章于 2024-10-09 22:24:16 发布