Solved

Using an encrypted  value to decrypt and display contents in vb6

Posted on 2016-11-27
9
29 Views
Last Modified: 2016-11-27
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?
0
Comment
Question by:rayluvs
  • 4
  • 3
  • 2
9 Comments
 
LVL 45

Expert Comment

by:aikimark
ID: 41903178
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.
0
 
LVL 45

Accepted Solution

by:
Martin Liss earned 500 total points
ID: 41903343
Please see some encryption examples in this EE thread.
0
 
LVL 45

Expert Comment

by:aikimark
ID: 41903354
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
0
 

Author Comment

by:rayluvs
ID: 41903485
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. ?
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 45

Expert Comment

by:Martin Liss
ID: 41903486
Just uncheck it and you should be OK.
0
 

Author Comment

by:rayluvs
ID: 41903551
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. ?
0
 
LVL 45

Assisted Solution

by:Martin Liss
Martin Liss earned 500 total points
ID: 41903557
I'm very sorry but I picked up that code from someplace at least 14 years ago and I really don't know much about it, so...

What are the names or technical names of the 2 types of encryption in your code? ==> I believe they are KKRSE and Simplecrypt
Where can we find more info on these 2 encryption? ==> I don't know
Also, is there any limit we can use to pass the string to encrypt? that is, can we send a paragraph of 200 letters? ==> I'm guessing but I'd say probably
Lastly, can we use special characters like ┼, ª, ├, ╚, etc. ? ==> Again guessing but probably not
0
 

Author Comment

by:rayluvs
ID: 41903587
Fair enough. Understood.
0
 
LVL 45

Expert Comment

by:Martin Liss
ID: 41903605
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
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Over the years I have built up my own little library of code snippets that I refer to when programming or writing a script.  Many of these have come from the web or adaptations from snippets I find on the Web.  Periodically I add to them when I come…
Modern/Metro styled message box and input box that directly can replace MsgBox() and InputBox()in Microsoft Access 2013 and later. Also included is a preconfigured error box to be used in error handling.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now