Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 1.17 KB

hashing.md

File metadata and controls

38 lines (28 loc) · 1.17 KB

Generating a Hash:

Endpoint:

POST /digest

Sample Request:

curl 'http://localhost:8080/digest' \
-X POST -H "Content-type: application/json" \
-d '{"message":"Hello Hashing!!!","hashing-algo":"SHA3256"}' | json_pp
Name Type Description
message
(Required)
String Message to be hashed
hashing-algo
(Optional)
String Hashing algorithm to be used. Possible values from Java Security Standard Algorithm Names. Default Value: SHA-512

Response:

{
   "hash" : "Mb9x21/z6XCh3OiwzWSfkxnybuKPRe0FiSqxLDkNDGRPcRzcvEHUrSRF6iseByz/qVtgXc3qYe4U1gWZkM2B7A==",
   "hashing-algo" : "SHA3-512",
   "message" : "Hello Hashing!!!"
}
Name Type Description
message String Message to be hashed
hashing-algo String Hashing algorithm to be used. Possible values from Java Security Standard Algorithm Names. Default Valye: SHA-512
hash String Computed Hash value of above message