Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 921
Gizmo_the_Great Avatar asked Jan 20 '23 06:01

Gizmo_the_Great


1 Answers

In recent versions (say 2 years or so), there is a package "hash" with units "sha1" and "md5" that implement some basic hashes and checksums

If you need more, most people use DCPCrypt as it is easily converted

http://www.cityinthesky.co.uk/opensource/dcpcrypt

At least I see regularly posts on the lists that people are using it

like image 119
Marco van de Voort Avatar answered May 03 '23 11:05

Marco van de Voort