Skip to main content

verify forge hash

POST 

https://api.mtrust.io/api/signing/v1/hash/forge/verify

This endpoints accept a file and a hash string (base64), provided as a multipart/form-data upload The file will be hashed with node-forge library and the result will be compared with the provided hash

Request

Bodyrequired

    file binary

    the file to be hashed

    hash string

    the hash to be verified as a string

Responses

the verification result as boolean
Schema
    boolean boolean
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.mtrust.io/api/signing/v1/hash/forge/verify");
request.Headers.Add("Accept", "application/json");
var content = new StringContent(string.Empty);
content.Headers.ContentType = new MediaTypeHeaderValue("multipart/form-data");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://api.mtrust.io
Body required
the file to be hashed
ResponseClear

Click the Send API Request button above and see the response here!