Search code examples
freepascalsha256sha512

Does Free Pascal have a way to implement SHA256 or SHA512?


In the Free Pascal libraries there's a hash library that enables use of MD5 and SHA1 hashing algorithms (http://wiki.freepascal.org/hash). But what if I wanted to use a higher one, such as SHA256 or SHA512? Could I achieve this using Free Pascal? Searching the FP Wiki retunrs zero hits for SHA256\SHA512.


Solution

  • In Google codesearch I found several units that implement it in pascal.

    Query: sha256 | sha512 lang:pascal

    One of the sources is from Double Commander, which is a norton/total commander clone that's developed with FreePascal and Lazarus, so there you go.