跳到主要内容

random_secret

生成随机密钥

声明

string random_secret(bool encrypt = false, int length = 16)

参数

参数名描述
encrypt是否进行加密
length密钥长度

返回值

返回随机密钥

使用方式

返回文档