Link to home
Start Free TrialLog in
Avatar of jana
janaFlag for United States of America

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 '0x9C30220FD0E7FC190C24D0625469DCCB'.  We would like to use that has value and decrypt to display the result elsewhere.

How can we do this?
Avatar of aikimark
aikimark
Flag of United States of America image

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
Avatar of Martin Liss
Martin Liss
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
Avatar of jana

ASKER

Hi aikimark,

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.
Avatar of jana

ASKER

uncheck didn't work.  Like we said, your zip is what we are using.

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
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jana

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