libSha

I needed a SHA1 (FIPS180) hash digest function for another BeOS project I was working on. After digging around for quite some time, it occurred to me that there weren’t any nice and easy BeOS SHA implementations out there. This one still isn’t so nice n’ easy, but it works.

This is the source code. It comes with a BeIDE project file. It’ll create a little 8KB static library so you can link it directly to your apps without having to impose a shared library on your users. It’s a measly 9KB lib that has 3 functions. So partake of the joy and use this simple SHA hash with your next BeOS project!

Download Static SHA1 Lib for BeOS

Source

Browse the CVS Repository.

The CVS repository can be checked out through anonymous (pserver) CVS with the following instructions. When prompted for a “CVS password:” use anoncvs.

cvs -d:pserver:anoncvs@varnernet.com:/var/cvsroot login
cvs -z3 -d:pserver:anoncvs@varnernet.com:/var/cvsroot co looneyCode/LibSha

Other Options

As I’m not 100% certain the results of this SHA-1 hash method are 100% accurate, if binary size isn’t an issue, I would suggest statically linking OpenSSL into your application. You can use static libcrypto for just that!