I am new to Visual Basic and am wondering if someone can help me write some code.
FIRST
I am looking to write a program that will save a password in the registry. I want the password to be unique to the computer, that way if someone manages to steal it and install it on another computer, it will not function. I have managed to do this by adding the Windows Product ID in to the password cipher.
Please can you advise me if this is the best way. I don't know what else would be unique or how to read anything else.
SECOND
My cypher is crap! LOL I'm using a Cesar cipher but I want something that is stronger, a lot stronger. However, there is something more that I want. I want the encrypted text to look different each time, even if you encode the same text over and over again with the same password.
For example, if I ran the following pseudo code, exactly as it is, I'd want the output to be like what is shown below it:
Question
TonyLock
I am new to Visual Basic and am wondering if someone can help me write some code.
FIRST
I am looking to write a program that will save a password in the registry. I want the password to be unique to the computer, that way if someone manages to steal it and install it on another computer, it will not function. I have managed to do this by adding the Windows Product ID in to the password cipher.
Please can you advise me if this is the best way. I don't know what else would be unique or how to read anything else.
SECOND
My cypher is crap! LOL I'm using a Cesar cipher but I want something that is stronger, a lot stronger. However, there is something more that I want. I want the encrypted text to look different each time, even if you encode the same text over and over again with the same password.
For example, if I ran the following pseudo code, exactly as it is, I'd want the output to be like what is shown below it:
Dim myText = "Hello World" Dim myPass = "coo1" + getReg("WinID") Print "SAMPLE OUTPUT 1:" + Encrypt(myText, myPass) Print "SAMPLE OUTPUT 2:" + Encrypt(myText, myPass) Print "SAMPLE OUTPUT 3:" + Encrypt(myText, myPass) Print "SAMPLE OUTPUT 4:" + Encrypt(myText, myPass)SAMPLE OUTPUT 1: 74588FA117611C3D8217C4656D417E54C661BA0967EAHAIAOGJODSJGB82A4C544471D4BD8674
SAMPLE OUTPUT 2: C14DF07BB8EB9BF30E37118112FE9EA428E82CACCC58E52F9C3D8217C4656D417E54C661BA09
SAMPLE OUTPUT 3: 98ABDEFAAEBFD990DC6VHHOEHDHGKAGIIR0CEC5A39A24A9F0F0E66A7D30FB952CCC3BE923F5E
SAMPLE OUTPUT 4: 31394E3BA869B82A4C544471D4B7E77FA11761656D4165AE7AFA1F17611EBFD990DC6JTREE61
I hope some one can help write some very simple code that a beginner like me could understand.
Thank you
Link to comment
Share on other sites
10 answers to this question
Recommended Posts