crypto Hash
POSThttps://api.mtrust.io/api/signing/v1/hash/crypto
This endpoints accept a file, provided as a multipart/form-data upload. The file will be hashed with node-crypt library. The hash is returned as a base64 string
Request
- multipart/form-data
Bodyrequired
file binary
the file to be hashed
Responses
- 200
the hash result as string
- application/json
- Schema
- Example (auto)
Schema
string string
"string"
- 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/crypto");
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