← 开发者工具

计算哈希

GET /hash

使用所选算法生成任何输入字符串的加密哈希。支持 MD5、SHA-1、SHA-256、SHA-384 和 SHA-512。适用于校验和验证、数据完整性检查和开发测试。本地计算,零外部依赖。

参数

input 必填

String to hash

算法 可选 默认: sha256

Algorithm: md5, sha1, sha256, sha384, sha512

请求示例

基本用法
curl "https://nordapi.ee/api/v1/hash?input=hello+world&algorithm=sha256"
SHA-256 hash
curl "https://nordapi.ee/api/v1/hash?input=hello+world&algorithm=sha256"
MD5 hash
curl "https://nordapi.ee/api/v1/hash?input=test123&algorithm=md5"
SHA-512 hash
curl "https://nordapi.ee/api/v1/hash?input=my+secret+data&algorithm=sha512"

实时响应

{
  "data": {
    "algorithm": "sha256",
    "hash": "b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9",
    "input": "hello world",
    "length": 64
  },
  "success": true
}