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:
Foxconn to make iPhone casings in India as Apple shifts more production from China by Sagar Naresh Bhavsar
It was recently reported that Donald Trump was unhappy with Tim Cook and threatened Apple with a 25% tariff if iPhones weren't produced in America. While the exact reason is unclear, some speculated that Trump's anger had to do with Cook skipping the Middle East trip with him, which was attended by other major company CEOs.
Many believed that Apple came under the radar because of its plans for a $1.5 billion iPhone production plant in India. True or not, Apple is facing a tough situation as Trump has already imposed hefty tariffs on China, where the majority of iPhones are made. In a move to reduce dependence on China, Apple planned to shift its production from China to India, where tariffs are relatively lower.
In line with this, a fresh report by The Economic Times suggests that Apple's iPhone assembler, Foxconn, has decided to start producing iPhone casings in India. Sources claim that a new unit is being planned at the ESR Industrial Park in Oragadam, Tamil Nadu. The area is close to the upcoming display module manufacturing plant.
Until now, Tata Electronics was the one producing iPhone casings in India. However, Foxconn, which was assembling iPhones in the country at its plant in Sriperumbudur, will start making iPhone casings as well. This move suggests that Foxconn is helping Apple move more production out of China to India.
Prabhu Ram, vice president, industry research group, CyberMedia Research, said,
Foxconn has already ramped up its India push. The company recently started production of Apple AirPods in Hyderabad for exports and is also setting up an iPhone production plant in Bengaluru. Casings only make up about 2-3% of the total iPhone cost, making them locally helps Apple reduce costs, and also helps avoid hefty tariffs.
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:
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
https://www.neowin.net/forum/topic/773196-vb6-encryption/Share on other sites
10 answers to this question
Recommended Posts