C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




decrypts the passed string using a simple ASCII value-swapping algorithm


Posted Date: 10 Oct 2008    Resource Type: Code Snippets    Category: VB.NET Syntax

Posted By: Ashutosh Kumar       Member Level: Gold
Rating:     Points: 5



This code shows how to decrypt the string to ASCII

Dim strTempChar As String = Nothing, i As Integer
For i = 1 To Len(dpwd)
If Asc(Mid$(dpwd, i, 1)) < 128 Then
strTempChar = _
CType(Asc(Mid$(dpwd, i, 1)) + 128, String)
ElseIf Asc(Mid$(dpwd, i, 1)) > 128 Then
strTempChar = _
CType(Asc(Mid$(dpwd, i, 1)) - 128, String)
End If
Mid$(dpwd, i, 1) = _
Chr(CType(strTempChar, Integer))
Next i
Return dpwd




Responses


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

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Decrypts the passed string using a simple ASCII value-swapping algorithm  .  

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: Check whether the user is an admin or not in vb.net
Previous Resource: Working with Progress Bar VB.NET
Return to Discussion Resource Index
Post New Resource
Category: VB.NET Syntax


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design

conference call definitions

Contact Us    Privacy Policy    Terms Of Use