From c2fa988c375665a5fc565191796bb73d6f27690b Mon Sep 17 00:00:00 2001 From: linux_china Date: Fri, 15 Mar 2024 17:15:37 +0800 Subject: [PATCH] docs: add encrypt() and decrypt() functions --- info/stdlib.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/info/stdlib.md b/info/stdlib.md index 6db937c..bd03f8f 100644 --- a/info/stdlib.md +++ b/info/stdlib.md @@ -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