im new to visual basic. can i know how to do a xor encrypt password using vb 2005 express?

please help. im willing to learn

Recommended Answers

All 3 Replies

If your password is a string, you need to break it up in seperate chars (an array of chars) and then use the Xor operator on each character.

i have a simple one. can i apply xor on this?

For i = 1 To Len(Password)
            Result = Result & Chr(Asc(Mid(Password, i, 1)) * 2)
        Next
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.