This API is designed to provide secure hashing functionalities with both manual and automatic salt generation for SHA256 hash functions. It allows users to generate salted hashes and compare given hashes with plaintext passwords.
-
POST
/sha256/method/manual- Description: Generates a SHA256 hash with a user-provided salt.
- Request Body:
{ "password": "yourpassword", "rounds": 10, "salt": "yoursalt" } - Response:
{ "password": "hashed_password" }
-
POST
/sha256/method/auto- Description: Generates a SHA256 hash with an automatically generated salt.
- Request Body:
{ "password": "yourpassword", "rounds": 10 } - Response:
{ "password": "hashed_password", "salt": "auto_generated_salt" }
-
POST
/sha256/:hashed-password- Description: Compares a provided password with a stored hash using SHA256.
- Request Body:
{ "password": "yourpassword", "rounds": 10, "salt": "used_salt" } - Response:
{ "is_equal": true }