oracle 表字段加密


select to_char(translate(rawtohex('下东路'),'0123456789ABCDEF', 'FEDCBA9876543210')) from dual;--下东路加密为303D49543D48

select utl_raw.cast_to_varchar2(translate('303D49543D48','FEDCBA9876543210','0123456789ABCDEF')) from dual;--303D49543D48解密为下东路

select shmc   from sheng_psam_m where shdz_m like  '%'||to_char(translate(rawtohex('下东路'),'0123456789ABCDEF', 'FEDCBA9876543210'))||'%'

你可能感兴趣的:(oracle,加密解密)