1.0.1 • Published 6 years ago

hexo-jwt v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

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) }}

more

  1. learn more JWT config
  2. how to setting hexo plugins