I’m writing my own component in Delphi XE2 but I primary use C++ Builder. That is why I need some help regarding Delphi DCrypt library.
My new component needs to have a method (function) that calculates sha256 hash value of a string. I know for DCrypt library and I use it for some time but this time I need to isolate SHA256 hash algorithm and add it in my new component.
DCrypt has stored SHA256 in DCPsha256.pas but since I’m not so skilled in Delphi I don’t know what to do. I don’t need to install TDCP_sha256, I just need to be able to calculate SHA256 inside my new component.
Ideas? Thanks.
Create the objects manually. Use the existing units and do not modify DCPCrypt.
How to create an object:
You do not need to install any packages in order to provide access to the classes that you want to use, unless you wanted to drop them onto a form or data module. If you write code like the above code, you don’t need to modify anything.