Zip Component, Email Component, Encryption Component ActiveX Control for Zip Compression .NET Components for ASP.NET
ActiveX and .NET Components for Zip Compression, Encryption, Email, XML, S/MIME, HTML Email, Character Encoding, Digital Certificates, FTP, and more ASP Email ActiveX Component


Index of Chilkat Blog Posts

November 13, 2007

Hashing: Can I go backwards to restore the original data?

Question:
After I hash a string with "SHA512″ and encoding-mode "base64″, how to convert it again back to the original string?

Answer:
You cannot. Hash algorithms are one-way algorithms that create "fingerprint" of the data. Regardless of the amount of data that is hashed, the output (i.e. the fingerprint) is always a constant size. For example, SHA-1 output is always 20 bytes. SHA-512 output is always 64 bytes. Digest-MD5 has a 16-byte output.


Privacy Statement. Copyright 2000-2011 Chilkat Software, Inc. All rights reserved.
Send feedback to support@chilkatsoft.com

Components for Microsoft Windows XP, 2000, 2003 Server, Vista, Windows 7, and Windows 95/98/NT4.