How to encrypt data elements using plsql?
- Simple PL/SQL script to remove the unwanted non-ascii characters from oracle or 11i database.
- Send e-mail messages and attachments from PL/SQL
- Oracle Applications Script : Sample Script to Debug the Procedure, Packages Running At Backend
- How to use SHA-2 (One-Way Hash Function) to hash passwords in readable format?
- Oracle Applications:Checking Credit Card Number validity in Internet Expenses, iPayments using Luhn algorithm (modulus 10)
I am not the original creator of this plsql procedure. Just used this script three years before, and stored at my local computer. Unable to locate the source website. Hence, sharing it with you. The copyright and credit goes to the Author.
–===========================================================================
– Copywright 2007, chet west
–=============================================================================
– DESCRIPTION
– Example on how to encrypt data elements
–=============================================================================
– MODIFICATION HISTORY
– Person Date Comments
– ——— ———- ——————————————–
– Chet 2007 Initial Creation
–=============================================================================
– input_string VARCHAR2 ( 16 ) := ‘tigertigertigert’;
input_string CHAR ( 16 ) := ‘123456789′;
key_string VARCHAR2 ( 16 ) := ‘0racle9i0racle9i’;
encrypted_string VARCHAR2 ( 2048 );
decrypted_string VARCHAR2 ( 2048 );
error_in_input_buffer_length EXCEPTION;
PRAGMA EXCEPTION_INIT ( error_in_input_buffer_length, -28232 );
INPUT_BUFFER_LENGTH_ERR_MSG VARCHAR2 ( 100 ) := ‘*** DES INPUT BUFFER NOT A MULTIPLE OF 8 BYTES ***’;
– 1. Test string data encryption and decryption
– The interface for encrypting raw data is similar.
BEGIN
Dbms_output.put_line ( ‘> ========= BEGIN TEST =========’ );
Dbms_output.put_line ( ‘> Input String :’ ” input_string );
Dbms_obfuscation_toolkit.DES3Encrypt ( input_string => input_string
,key_string => key_string
,encrypted_string => encrypted_string
);
Dbms_output.put_line ( ‘> encrypted string : ‘ ” encrypted_string );
Dbms_obfuscation_toolkit.DES3Decrypt ( input_string => encrypted_string
,key_string => key_string
,decrypted_string => decrypted_string
);
Dbms_output.put_line ( ‘> Decrypted output : ‘ ” decrypted_string );
Dbms_output.put_line ( ‘> ‘ );
IF input_string = decrypted_string THEN
Dbms_output.put_line ( ‘> DES Encryption and Decryption successful’ );
END IF;
EXCEPTION
WHEN error_in_input_buffer_length THEN
Dbms_output.put_line ( ‘> ‘ ” INPUT_BUFFER_LENGTH_ERR_MSG );
END;

Excellent site. It was pleasant to me.
I wanted to ask, is there any chance for a modified version of the directory listing script, with an iphone-stylish like design?
http://www.jiltin.com – cool!!!!
I bookmarked this link. Thank you for good job!
Interesting site, but much advertisments on him. Shall read as subscription, rss.
Hello. I think the article is really interesting. I am even interested in reading more. How soon will you update your blog?
Any one can register and post their articles (not advertisement!). They must comply the copyright rules and other government rules.