1 Star 3 Fork 1

huifer / encryption

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

encryption

快速开始

  1. 下载源码
git clone https://gitee.com/pychfarm_admin/encryption.git
  1. 从源码构件
cd encryption
mvn clean install 
  1. 生成RSA秘钥,可以使用项目中的com.github.huifer.encryption.core.RSAEncrypt.generateKey方法进行生成.
  2. 选择需要加密的内容进行加密,具体使用项目中com.github.huifer.encryption.core.RSAEncrypt.encrypt方法进行加密
  3. 修改SpringBoot项目的依赖,在配置文件中加入下面依赖
<dependency>
    <groupId>com.github.huifer</groupId>
    <artifactId>encryption-core</artifactId>
    <version>1.0-SNAPSHOT</version>
</dependency>
  1. 修改SpringBoot中 application.yml 文件或者 application.properties 文件,测试用例如下
abc=PWD[bMw8oqC/ma31JqF0DCuf5QWqSFRMigYw3fMBIIIfJ85vnmNnFbH9IcJfUHgbSmNHeITffToODwAygy4vKdzu6o1i1UQOd8w4nPKhnVJCLKqW5jmc3Yw+FkTIRBp63NJWzECVnRHqEK+bTxPMa1gfKql/2U45XxqeDSZOEXGeA+E=]
  1. 修改启动命令, 添加 -Dencryption.rsa.privateKey=你的私钥

  2. 启动项目

设计文档

Comments ( 0 )

Sign in for post a comment

About

Cancel

Releases

No release

Contributors

All

Activities

load more
can not load any more
1
https://gitee.com/pychfarm_admin/encryption.git
git@gitee.com:pychfarm_admin/encryption.git
pychfarm_admin
encryption
encryption
main

Search