hexo-jwt

1.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i hexo-jwt

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

2.86 kB

Total Files

4

Last publish

Collaborators

  • eminoda