Sign in to follow this  
Followers 0
Innovative

SHA1 Encryption and Decryption

4 posts in this topic

Is there a way i can encrypt and decrypt text in SHA1 ?

Share this post


Link to post
Share on other sites



SHA1 is a hashing algorithm, not encryption. You can not "decrypt" SHA1 like true forms of encryption. As far as generating a hash from some input, search around, there is a Plugin/dll to hash with it.

Share this post


Link to post
Share on other sites

Is there a way i can encrypt and decrypt text in SHA1 ?

Example:

#compiler_plugin_funcs = SHAHash

$plH = PluginOpen("SHAHash.dll")
MsgBox(0, "Test SHAHash.DLL", "String 'Test String':" & @TAB & SHAHash("Test String", 2, True) & @CRLF & _
                              "File 'SHAHash.dll':" & @TAB & SHAHash("SHAHash.dll", 1, True))
PluginClose($plH)

I hope this helps.


When the words fail... music speaks

Share this post


Link to post
Share on other sites

SHA1 and MD5 hashing is available as Windows API, CryptHashData & co in advapi32.dll. There's no real need for third party DLLs. I think there are some crypto UDFs in example forum which provide wrappers to those API functions.


"be smart, drink your wine"

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0