返回顶部
o

opensslOpenSSL随机生成

Generate secure random strings, passwords, and cryptographic tokens using OpenSSL. Use when creating passwords, API keys, secrets, or any secure random data.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
2,300
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

openssl

OpenSSL 安全生成

使用 openssl rand 生成加密安全的随机数据。

密码/密钥生成

bash

32 字节随机数据,base64 编码(43 个字符,通过 tr 实现 URL 安全)


openssl rand -base64 32 | tr +/ -_ | tr -d =

24 字节随机数据,十六进制编码(48 个字符)

openssl rand -hex 24

字母数字密码(32 个字符)

openssl rand -base64 48 | tr -dc a-zA-Z0-9 | head -c 32

常用长度

用途命令
密码(强)openssl rand -base64 24
API 密钥
openssl rand -hex 32 | | 会话令牌 | openssl rand -base64 48 | | 短 PIN 码(8 位数字) | openssl rand -hex 4 | xxd -r -p | od -An -tu4 | tr -d | head -c 8 |

注意事项

  • - -base64 输出的字符数约为字节数的 1.33 倍
  • -hex 输出的字符数为字节数的 2 倍
  • 通过管道使用 tr -dc 过滤字符集
  • 密钥始终使用至少 16 字节(128 位)

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 openssl-1776392235 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 openssl-1776392235 技能

通过命令行安装

skillhub install openssl-1776392235

下载

⬇ 下载 openssl v1.0.0(免费)

文件大小: 1.1 KB | 发布时间: 2026-4-17 16:10

v1.0.0 最新 2026-4-17 16:10
Initial release of the openssl skill for secure random data generation.

- Provides commands to generate passwords, API keys, tokens, and secrets with OpenSSL.
- Includes examples for different character sets and output lengths.
- Offers guidance on common use cases and best practices for cryptographic security.
- Details how to adjust output character sets and explains output sizing for base64 and hex.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部