From f2fa45f30f2b1830015a4902f984f3bb105b1aff Mon Sep 17 00:00:00 2001 From: linux_china Date: Thu, 21 Mar 2024 18:25:30 +0800 Subject: [PATCH] docs: polishing for read_all to support remote and compressions --- info/stdlib.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/info/stdlib.md b/info/stdlib.md index 81d53cb..5876de1 100644 --- a/info/stdlib.md +++ b/info/stdlib.md @@ -503,7 +503,9 @@ Algorithms: - 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")`, `encrypt("aes-256-gcm", "Secret Text", "your_pass_key","iv")` + - encrypt: `decrypt("aes-128-cbc", "7b9c07a4903c9768ceeeb922bcb33448", "your_pass_key")` Explain for `encrypt` and `decrypt`: @@ -626,9 +628,12 @@ date/time array: ### File -- read file into text: `read_all(file_path)` +- read file into text: `read_all(file_path)`, `read_all("https://example.com/text.gz")` - write text info file: `write_all(file_path, text)` Replace if file exits. +**Tips**: `read_all` function uses [OneIO](github.com/bgpkit/oneio), and remote(https or ftp) and compressions( +gz,bz,lz,xz) are supported. + ### getline Please visit: https://www.gnu.org/software/gawk/manual/html_node/Getline.html