当前位置:网站首页>Oracle uses DBMS_ Crypto realizes MD5 value calculation
Oracle uses DBMS_ Crypto realizes MD5 value calculation
2022-04-21 07:22:00 【Landscape Shepherd】
background
In the work , You need to check the data in the database lob Type field MD5 Value calculation , To judge lob Is the content unique . There are many ways to achieve it , Such as developing programs to achieve 、 Database implementation . Here the Oracle Of DBMS_CRYPTO Package implementation .
DBMS_CRYPTO brief introduction
DBMS_CRYPTO Contains basic encryption functions and procedures . To use this package correctly and safely , Requires a general level of security expertise .
DBMS_CRYPTO Package support for common Oracle Data types are encrypted and decrypted , Include RAW And big objects (lob), Like images and sounds . say concretely , It supports blob and clob. Besides , It also provides global support for encrypting data across different database character sets .
The cryptographic algorithms supported are as follows :
-
Data Encryption Standard (DES), Triple DES (3DES, 2-key and 3-key)
-
Advanced Encryption Standard (AES)
-
MD5, MD4, SHA-1, and SHA-2 cryptographic hashes
-
MD5, SHA-1, and SHA-2 Message Authentication Code (MAC)
The process
-- Empowerment
grant execute on DBMS_CRYPTO to USERNAME;
-- Confirm whether you have this permission
SELECT * FROM user_tab_privs WHERE table_name = 'DBMS_CRYPTO';
-- Generate MD5
select lower(rawtohex(dbms_crypto.hash(utl_raw.cast_to_raw(' Zhang San '),2 /*dbms_crypto.HASH_MD5*/))) from dual;

Reference resources
https://docs.oracle.com/database/121/ARPLS/d_crypto.htm#ARPLS65672
版权声明
本文为[Landscape Shepherd]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210619114745.html
边栏推荐
猜你喜欢
随机推荐
【无标题】数据库——《限制返回行数》
图形学基础|抗锯齿(Anti-Aliasing)
C语言版:二叉树叶子结点和非叶子结点求法
学习笔记-最长子序列,最大子方块
程序启动顺序引发的血案之 dpdk 进程死锁
云计算中存储继承知识
Guaba and Computational Geometry
Fundamentals of graphics | skin rendering
Integers Have Friends 区间gcd + 双指针
SQL--数据定义
MMIO 与 PMIO 技术
登录页面讲解
dpdk-16.04 igb crc length 统计问题
使用redis实现分布式锁原理代码浅析
H. Are You Safe? 凸包裸题
虚幻引擎之Sequence特效和音频绑定触发
使用 mtrace 追踪内存泄露问题
【LeetCode 401】二进制手表
Build your own blog
「Tarjan」有向图强连通分量









