Validate a text string against given hash by MD5, SHA1, SHA256, SHA224, SHA512, SHA384, SHA3, or RIPEMD160