sha1, sha256, ripemd160 without openssl