How to cryptographically hash a JSON object?

后端 未结 7 1710
醉话见心
醉话见心 2020-12-01 01:30

The following question is more complex than it may first seem.

Assume that I\'ve got an arbitrary JSON object, one that may contain any amount of data including oth

7条回答
  •  鱼传尺愫
    2020-12-01 01:51

    RFC 7638: JSON Web Key (JWK) Thumbprint includes a type of canonicalization. Although RFC7638 expects a limited set of members, we would be able to apply the same calculation for any member.

    https://tools.ietf.org/html/rfc7638#section-3

提交回复
热议问题