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 » ASP.NET WebForms »

Decrypt Function in C# .Net


Posted Date: 02 Dec 2008    Resource Type: Code Snippets    Category: ASP.NET WebForms
Author: Pradeep IyerMember Level: Diamond    
Rating: 1 out of 5Points: 10




The Decrypt function changes an encrypted string into readable text. Decrypt only can decrypt strings encoded with the Encrypt Function.




Private Function Decrypt(ByVal encryptedstring)
Dim x, i, tmp
encryptedstring = StrReverse( encryptedstring )
For i = 1 To Len( encryptedstring )
x = Mid( encryptedstring, i, 1 )
tmp = tmp & Chr( Asc( x ) - 1 )
Next
Decrypt = tmp
End Function




Regards,
Pradeep Y






Responses

Author: Fool To Code    02 Dec 2008Member Level: Gold   Points : 0
good stuff yaar, thanx


Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
Decrypt Function in C# .Net  .  

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: Difference between two dates in ASP.Net using VB.net
Previous Resource: Using query string for data retrieval
Return to Discussion Resource Index
Post New Resource
Category: ASP.NET WebForms


Post resources and earn money!
 
Related Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use