linux c/c++有base64加密函数吗
发布网友
发布时间:2022-04-30 02:37
我来回答
共2个回答
热心网友
时间:2023-10-08 17:38
没有现成的,需要自己编写。
热心网友
时间:2023-10-08 17:39
用 base64 命令
BASE64(1) User Commands BASE64(1)
NAME
base64 - base64 encode/decode data and print to standard output
SYNOPSIS
base64 [OPTION]... [FILE]
DESCRIPTION
Base64 encode or decode FILE, or standard input, to standard output.
Mandatory arguments to long options are mandatory for short options too.
-d, --decode
decode data
-i, --ignore-garbage
when decoding, ignore non-alphabet characters
-w, --wrap=COLS
wrap encoded lines after COLS character (default 76). Use 0 to disable line wrapping
--help display this help and exit
--version
output version information and exit