aes

AES 对称性加密工具

License

License

GroupId

GroupId

cn.com.xuxiaowei.utils
ArtifactId

ArtifactId

aes
Last Version

Last Version

0.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

aes
AES 对称性加密工具
Project URL

Project URL

https://github.com/xuxiaowei-com-cn/AES
Project Organization

Project Organization

徐晓伟工作室
Source Code Management

Source Code Management

https://github.com/xuxiaowei-com-cn/AES

Download aes

How to add to project

<!-- https://jarcasting.com/artifacts/cn.com.xuxiaowei.utils/aes/ -->
<dependency>
    <groupId>cn.com.xuxiaowei.utils</groupId>
    <artifactId>aes</artifactId>
    <version>0.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/cn.com.xuxiaowei.utils/aes/
implementation 'cn.com.xuxiaowei.utils:aes:0.0.1'
// https://jarcasting.com/artifacts/cn.com.xuxiaowei.utils/aes/
implementation ("cn.com.xuxiaowei.utils:aes:0.0.1")
'cn.com.xuxiaowei.utils:aes:jar:0.0.1'
<dependency org="cn.com.xuxiaowei.utils" name="aes" rev="0.0.1">
  <artifact name="aes" type="jar" />
</dependency>
@Grapes(
@Grab(group='cn.com.xuxiaowei.utils', module='aes', version='0.0.1')
)
libraryDependencies += "cn.com.xuxiaowei.utils" % "aes" % "0.0.1"
[cn.com.xuxiaowei.utils/aes "0.0.1"]

Dependencies

compile (1)

Group / Artifact Type Version
commons-codec : commons-codec jar 1.15

test (1)

Group / Artifact Type Version
junit : junit jar 4.13.1

Project Modules

There are no modules declared in this project.

AES 对称性加密

为简化开发工作、提高生产率而生

maven code style

示例

  • 代码
String content = "Hello World";
String seed = "xuxiaowei.com.cn";

System.out.println("原文:" + content);
System.out.println("种子(密码):" + seed);

String encryptStr = Aes.encryptStr(content, seed);
System.out.println("加密结果:" + encryptStr);

String decryptStr = Aes.decryptStr(encryptStr, seed);
System.out.println("解密结果:" + decryptStr);
  • 结果
原文:Hello World
种子(密码):xuxiaowei.com.cn
加密结果:e33b80dab15be20728f0dccaee94d90b
解密结果:Hello World

其他示例

  • String、byte 类型的示例,查看测试类

JS

Versions

Version
0.0.1