采用Oracle的dbms_obfuscation_toolkit的加密

create or replace function MD5
(vpassword in varchar2)
return varchar2
is
retval varchar2(32);
begin
    retval := utl_raw.cast_to_raw(dbms_obfuscation_toolkit.MD5(input_string =>lower(vpassword)));
    return retval;
end;

 

posted @ 2016-07-20 17:29  蜜雪粮液  阅读(686)  评论(0编辑  收藏  举报