oracle MD5 문자열 암호 화

677 단어 OacleF#
프로젝트 에 사용 되 는 Oacle MD5 암호 화 방식 으로 로그 인 할 때 사용 합 니 다.
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;


 
다음

좋은 웹페이지 즐겨찾기