

FN_CheckUser (' a ', 'bb') From Dual Note: MD5 encoding comparisons can be made without utl_raw.cast_to_RAW conversion. FN_CheckUser (' a ', 'aa') From Dual The Select Test_MD5. Base64 encoding schemes are commonly used when there is a need to encode binary data, especially when. Base64 encode your data without hassles or decode it into a human-readable format. Cast_To_Raw(FN_GetMD5(P_Password))=L_Password Then Return 1 The Else Return 0 End the If EXCEPTION WHEN NO_DATA_FOUND THEN Return 0 The END The End -3.3 Test Delete Test_User Insert Into Test_User Values (' A ', Test_MD5 FN_GetMD5 (" aa ")) Insert Into Test_User Values (' B ', Test_MD5 FN_GetMD5 (" bb ")) Commit The Select Test_MD5. Meet Base64 Decode and Encode, a simple online tool that does exactly what it says: decodes from Base64 encoding as well as encodes into it quickly and easily. Cast_To_Raw(Password) INTO L_Password FROM Test_User WHERE Upper(UserName) = Upper(P_UserName) If utl_raw. code_pieces ul.piece_anchorģ example walkthrough 3.1 Test environment using Scott/ -3.2.1 to create Drop Table Test_User CREATE TABLE Test_User (UserNameVARCHAR2(30)NOT NULL, PassWordVARCHAR2(2000)NOT NULL) / -3.2.2 Create Or Replace Package Test_MD5 AS Function FN_GetMD5(P_Str In VarChar2) Return VarChar2 Function FN_CheckUser (P_UserName In VarChar2,P_Password In VarChar2) Return Number The End / CREATE OR REPLACE PACKAGE BODY Test_MD5 AS FUNCTION FN_GetMD5 (P_StrINVARCHAR2) RETURN VARCHAR2 AS BEGIN RETURN DBMS_OBFUSCATION_TOOLKIT.MD5(input_string => Upper (P_Str)) The END Function FN_CheckUser (P_UserNameINVARCHAR2,P_PasswordINVARCHAR2) Return Number Is L_Password VarChar2(2000) BEGIN SELECT utl_raw. To display it correctly, the string must be converted to utl_raw.cast_to_raw to get > from NICK511 in the previous forum 2.2utl_raw.cast_to_raw dbms_obfuscation_toolkit.md5 returns a string that is of RAW type. Cannot be applied directly to the SELECT statement. MD5 DBMS_OBFUSCATION_TOOLKIT.MD5 select DBMS_OBFUSCATION_TOOLKIT.MD5(input_string => ‘ABC’) a from Dual.
MD5 ENCODING SITE PASSWORD
Use MD5 encrypted user operating password, can effectively prevent the system maintenance personnel directly into the database system security holes of the encrypted password field, this paper as an example, hoping to bring help everybody system construction process.

Using MD5 to encrypt the user’s operation password can effectively prevent the system security vulnerability when the system maintainer directly enters the database cannot be reversed forever.
MD5 ENCODING SITE CODE
The code is said to be irreversible encryption code cannot be reversed forever. As is known to all, MD5 is the most widely used password protection method at present.
