jana
asked on
Using an encrypted value to decrypt and display contents in vb6
In our vb6 code we would like to use an encrypted value, say "Expert Exchange" with a md5 hash resulting to '0x9C30220FD0E7FC190C24D06 25469DCCB' . We would like to use that has value and decrypt to display the result elsewhere.
How can we do this?
How can we do this?
hashing is a one-way algorithm. While it is useful to see if things have been changed it can't be used in place of an encryption/decryption algorithm. You can also use hashing to check to see if the encrypted value has been changed.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I've used Ken Isaacs's crypto VB library and even helped him with some of his code. It has both encrypting and hashing routines.
https://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=74645&lngWId=1
https://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=74645&lngWId=1
ASKER
Hi aikimark,
Hi Martin,
We used your "encrypt.zip" and modified to our need and worked excellently!!!
Question prior closing,
- What are the names or technical names of the 2 types of encryption in your code?
- Where can we find more info on these 2 encryption?
- Also, is there any limit we can use to pass the string to encrypt? that is, can we send a paragraph of 200 letters?
- Lastly, can we use special characters like ┼, ª, ├, ╚, etc. ?
the link gave me an error 'Compile error: Can't find project or library':
Hi Martin,
We used your "encrypt.zip" and modified to our need and worked excellently!!!
Question prior closing,
- What are the names or technical names of the 2 types of encryption in your code?
- Where can we find more info on these 2 encryption?
- Also, is there any limit we can use to pass the string to encrypt? that is, can we send a paragraph of 200 letters?
- Lastly, can we use special characters like ┼, ª, ├, ╚, etc. ?
Just uncheck it and you should be OK.
ASKER
uncheck didn't work. Like we said, your zip is what we are using.
Question prior closing, please answer:
Question prior closing, please answer:
- What are the names or technical names of the 2 types of encryption in your code?
- Where can we find more info on these 2 encryption?
- Also, is there any limit we can use to pass the string to encrypt? that is, can we send a paragraph of 200 letters?
- Lastly, can we use special characters like ┼, ª, ├, ╚, etc. ?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Fair enough. Understood.
I'm glad I was able to help.
If you expand the “Full Biography” section of my profile you'll find links to some articles I've written that may interest you.
Marty - Microsoft MVP 2009 to 2016
Experts Exchange MVE 2015
Experts Exchange Top Expert Visual Basic Classic 2012 to 2015
If you expand the “Full Biography” section of my profile you'll find links to some articles I've written that may interest you.
Marty - Microsoft MVP 2009 to 2016
Experts Exchange MVE 2015
Experts Exchange Top Expert Visual Basic Classic 2012 to 2015