Skip to content

Commit

Permalink
docs: add encrypt() and decrypt() functions
Browse files Browse the repository at this point in the history
  • Loading branch information
linux-china committed Mar 15, 2024
1 parent 9fb217e commit c2fa988
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion info/stdlib.md
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,10 @@ Algorithms:
### crypto

- hmac: `hmac("HmacSHA256","your-secret-key", $1)` or `hmac("HmacSHA512","your-secret-key", $1)`
- jwt: `jwt("HS256","your-secret-key", arr)`, `dejwt("your-secret-key", token)`. algorithm: `HS256`, `HS384`, `HS512`.
- jwt: `jwt("HS256","your-secret-key", arr)`. algorithm: `HS256`, `HS384`, `HS512`.
- dejwt: `dejwt("your-secret-key", token)`.
- encrypt: `encrypt('aes-128-cbc', 'Secret Text', 'your_pass_key'))` Now only `aes-128-cbc` support
- encrypt: `decrypt('aes-128-cbc', '7b9c07a4903c9768ceeeb922bcb33448', 'your_pass_key'))` Now only `aes-128-cbc` support

# KV

Expand Down

0 comments on commit c2fa988

Please sign in to comment.