verify forge hash
POSThttps://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
- multipart/form-data
Bodyrequired
file binary
the file to be hashed
hash string
the hash to be verified as a string
Responses
- 200
the verification result as boolean
- application/json
- Schema
Schema
boolean boolean
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
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());
ResponseClear