cosmostail/x-jwt

受JWT协议启发,X-JWT旨在利用AWS KMS安全地加密和解密数据。

dev-master 2017-08-14 03:42 UTC

This package is auto-updated.

Last update: 2024-09-12 06:09:13 UTC


README

模型

//Headers will be saved as plain text
{
    alg: string, //the encrpt algorithm, required
    iss: string, //the issuer
    aud: string, //the audience, optional
    iv: string, //the tnitialization vector
    iat: int, //issue time
    exp: int, //# of seconds after the token expired,
    key: string, //data key generated by aws kms
}

//Payload will be save as encrpted data. You CAN save more than 4k of data.
{
    //Your data
}

//Signiture