C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Code Snippets » Encryption »

Oracle Function for Password encryption


Posted Date: 29 Oct 2008    Resource Type: Code Snippets    Category: Encryption
Author: chandrakanthMember Level: Silver    
Rating: 1 out of 5Points: 5



This code shows the password enryption logic in oracle database


CREATE OR REPLACE FUNCTION pass_encrypt( p_usernam IN VARCHAR2, p_password IN VARCHAR2 ) RETURN VARCHAR2
IS
BEGIN
RETURN LTRIM( TO_CHAR( dbms_utility.get_hash_value( UPPER(p_usernam)||'/'||UPPER(p_password),
10000, POWER(2,30) ),
RPAD( 'X',29,'X')||'X' ) );
END pass_encrypt;
/



Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
Oracel 9i  .  Function  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Code for encrypting and decrypting Input String
Previous Resource: encrypt or decrypt password in c# with asp.net
Return to Discussion Resource Index
Post New Resource
Category: Encryption


Post resources and earn money!
 
More Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use