Click here to Skip to main content
15,884,821 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Can any1 please suggest me some links from where I could buy ocx or dll's that i could use to add in a mechanism in my vb6 project to encrypt binary files using SHA-1 or higher
Posted
Comments
OriginalGriff 9-Oct-10 4:58am    
"actually i just need to hash the binary file so that after transferring it i can check to c if both the file copies match....
is that what the SHA algorithm does?....... will it help me verify whether its the correct and uncorrupted file? - clairh 16 hours ago"

Yes, that is one use. You don't need to buy anything - SHA is built in to .NET
Look at http://msdn.microsoft.com/en-us/library/system.security.cryptography.sha512managed.aspx for details.

1 solution

SHA is not an encryption algorithm. It is a hashing algorithm.
The difference is that encrypted code can be decrypted. Hashed code cannot be unhashed to produce the original inputs.
If you create an SHA code for your binary file you cannot go back to the file from the SHA code.
 
Share this answer
 
Comments
clairh 8-Oct-10 12:19pm    
actually i just need to hash the binary file so that after transferring it i can check to c if both the file copies match....
is that what the SHA algorithm does?....... will it help me verify whether its the correct and uncorrupted file?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900