Hutool Hutool
(opens new window)
🏡首页
📖指南
🎢最佳实践
💖支持
💡javaDoc (opens new window)
⏳更新记录 (opens new window)
  • 🍎gitee (opens new window)
  • 🍏github (opens new window)
(opens new window)
🏡首页
📖指南
🎢最佳实践
💖支持
💡javaDoc (opens new window)
⏳更新记录 (opens new window)
  • 🍎gitee (opens new window)
  • 🍏github (opens new window)
  • 快速入门

  • 核心(hutool-core)

  • 定时任务(hutool-cron)

  • 加密(hutool-crypto)

    • 简介
    • 加密解密工具-SecureUtil
      • 介绍
      • 方法介绍
        • 对称加密
        • 摘要算法
        • 非对称加密
        • UUID
        • 密钥生成
    • 对称加密(symmetric)

    • 非对称加密(asymmetric)

    • 摘要算法(digest)

    • 证书(cert)

    • 简单认证和安全层(sasl)

    • OpenSSL相关(openssl)

    • BouncyCastle相关(bc)

  • 数据库(hutool-db)

  • 扩展(hutool-extra)

  • HTTP(hutool-http)

  • 日志(hutool-log)

  • 配置文件(hutool-setting)

  • JSON(hutool-json)

  • Office办公(hutool-poi)

  • 套接字(hutool-socket)

  • GUI(hutool-swing)

  • 指南
  • 加密(hutool-crypto)
Hutool
2026-01-03
目录

加密解密工具-SecureUtil

# 介绍

SecureUtil主要针对常用加密算法构建快捷方式,还有提供一些密钥生成的快捷工具方法。

# 方法介绍

# 对称加密

  • SecureUtil.aes
  • SecureUtil.des

# 摘要算法

  • SecureUtil.md5
  • SecureUtil.sha1
  • SecureUtil.hmac
  • SecureUtil.hmacMd5
  • SecureUtil.hmacSha1

# 非对称加密

  • SecureUtil.rsa
  • SecureUtil.dsa

# UUID

  • SecureUtil.simpleUUID 方法提供无“-”的UUID

# 密钥生成

  • SecureUtil.generateKey 针对对称加密生成密钥
  • SecureUtil.generateKeyPair 生成密钥对(用于非对称加密)
  • SecureUtil.generateSignature 生成签名(用于非对称加密)

其它方法为针对特定加密方法的一些密钥生成和签名相关方法,详细请参阅API文档。

上次更新: 2026/01/03, 21:59:18
简介
介绍

← 简介 介绍→

Theme by Vdoing | Copyright © 2025-2026 Hutool | Apache-2.0
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式