revenuewire / x-jwt
受JWT协议启发,X-JWT旨在使用AWS KMS安全地加密和解密数据。
v1.0
2017-08-14 21:41 UTC
Requires
- aws/aws-sdk-php: ^3.32
This package is auto-updated.
Last update: 2024-09-12 06:26:27 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