• 0

[VB]


Question

I have been asked by my A Level computing teacher for a password scipt in VB (VB Studio 6) I have got the basics in place, with the Selection statements etc (accepts the password) He has asked if i can take it one step further so that i can encrypt the password in the source code itself to stop ASCII searching programs from detecting the password from the source code (this code could also be gathered by simply looking at the source) im needing a way so that it is encrypted within the source as well as when the user types it in, therefore the program itself never actually sees the password, it only checks to two encrypted passwords...

Please can some one help me out here? :)

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

best/fastest way would be to XOR the password

hardcodedpass = pass XOR cypher

then when checking the pass,

if enteredpass XOR cypher = hardcodedpass then

'proceed

else

'password was invalid

end if

there's some text functions you can also use, like comparing the strReverse and such, but XOR is probably the simplest and fastest to just avoid someone opening up your program in a hex editor and finding the ASCII strings.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.