Move SHA-finding code to lib, with tests