oracle md5 算法简单引用

CREATE OR REPLACE FUNCTION POS_COUPON_V1.GET_MD5
( p_str in varchar2)
RETURN varchar2 IS
    result VARCHAR2 (32);
BEGIN
result :=Utl_Raw.Cast_To_Raw(DBMS_OBFUSCATION_TOOLKIT.MD5(input_string => Upper(P_Str)));
DBMS_OUTPUT.PUT_LINE('md5: ['||result||']');
RETURN result;
END;
/

select get_md5('123456') from dual;

你可能感兴趣的:(oracle)