SHA-1 implementation for SQLite