Hash Matcher
The /hash_matcher
endpoint matches a hash string against the given text. This endpoint also supports the three algorithms: bcrypt, SHA-256, and MD5.
Method: POST
To make a request for hash matching, send the required parameters with the authorization header to the /hash_matcher
endpoint via POST
method.
Parameters
This endpoint accepts only three parameters:
algorithm
is the algorithm in which the provided hash is hashed in.text
is the text against which the provided hash will be compared.hash
is the hash against which text will be compared.
Responses
A successful request looks like as follows:
{
"status": "success",
"data": {
"algorithm": "bcrypt",
"matched": true
},
"message": "The hash matches the provided text."
}
And if error occurs:
{
"status": "error",
"error": {
"code": "INVALID_ALGORITHM",
"message": "Supported algorithms are: bcrypt, sha256, and md5.",
"details": null
}
}