hexo-jwt
v1.0.1
Published
encrypt something by JWT
Downloads
1
Readme
hexo-jwt
encrypt something by JWT, if you want to someone can read your blog when the bolg is decoded after he was authed;
中文说明
how to use
install npm module
npm install hexo-jwt -S
setting your hexo config.yml
jwt:
header:
typ: JWT,
alg: HS256
expiresIn: 1h
secretOrPrivateKey: hexo
use it where you need it
{{ encrypt(your payload,config.jwt,config.secretOrPrivateKey) }}