PDA

View Full Version : Solved: SHA1 Hash Functions



Movian
10-22-2008, 07:54 AM
Hey,
i have been trying to find a hashing function that will take a string value and return an SHA1 Hash and Visa Versa. However all my searches have led me to SHA256 and even then its in VB 2.0 and VB6.0 (Which i can't open :( )

So does anyone know of a VBA implementation ? Specifically one that will work in access

Tommy
10-22-2008, 08:17 AM
You can open a VB *.bas file or *.frm file in notepad. Just an FYI

Movian
10-22-2008, 12:42 PM
actualyl it ended up being a class file...

i was just unfamiliar with class files so didn't know how to use it !!!
lol

amazingly this VB 6.0- code works out the box in VBA ! :D

http://www.veign.com/code-view.php?type=app&codeid=76


~EDIT!

Dammit its only one way.....

it will encrypt the text string in SHA1 but how do you Un Encrypt it !! ? :(

i have attached the archive, as it has many other cryptographic and encrypting classes for use

SHA256, MD5, Blowfish and many many more

all credit to the author
David Midkiff

and i just now realised i was being an idiot and didn't know how hashed strings worked (and didn't know it was a 1 way encryption system!!!! LOL) so this is all finished and Problem solved