All Projects → Licoy → Encrypt Body Spring Boot Starter

Licoy / Encrypt Body Spring Boot Starter

Licence: apache-2.0
(停止维护,替代品搜索:https://github.com/search?l=Java&q=encrypt&type=Repositories )SpringBoot控制器统一的响应体加密与请求体解密的注解处理方式,支持MD5/SHA/AES/DES/RSA

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Encrypt Body Spring Boot Starter

Netcore.encrypt
NETCore encrypt and decrpty tool,Include aes,des,rsa,md5,sha1,sha256,sha384,sha512
Stars: ✭ 339 (+71.21%)
Mutual labels:  md5, aes, rsa, sha1, encrypt
crypto.js
base on crypto module
Stars: ✭ 13 (-93.43%)
Mutual labels:  aes, rsa, md5, sha1
common-secure
提供一些加密算法java代码封装 包括 RSA/AES/DES/3DES/MD5/SHA/HmacSHA256
Stars: ✭ 37 (-81.31%)
Mutual labels:  aes, rsa, md5, encrypt
Springboot Learn By Example
SpringBoot Learn By Example Book
Stars: ✭ 68 (-65.66%)
Mutual labels:  spring, springboot, spring-mvc, spring-security
Spring Cloud Flycloud
🔥🔥🔥FlyClould 微服务实战项目框架,在该框架中,包括了用 Spring Cloud 构建微服务的一系列基本组件和框架,对于后台服务框架的搭建有很大的参考价值,大家可以参考甚至稍加修改可以直接应用于自己的实际的项目开发中,该项目没有采用Maven进行项目构建,Maven通过xml进行依赖管理,导致整个配置文件太过臃肿,另外灵活性也不是很强,所以我采用Gradle进行项目构建和依赖管理,在FlyTour项目中我们见证了Gradle的强大,通过简单的一些配置就可以轻松的实现组件化的功能。该项目共有11个Module工程。其中10个位微服务工程,这10个微服务工程构成了一个完整的微服务系统,微服务系统包含了8个基础服务,提供了一整套微服务治理功能,他们分别是配置中心module_c…
Stars: ✭ 1,514 (+664.65%)
Mutual labels:  spring, springboot, spring-mvc, spring-security
Spring Boot Blog
Simple blog web app made using Spring Boot + Thymeleaf
Stars: ✭ 121 (-38.89%)
Mutual labels:  spring, springboot, spring-mvc, spring-security
Securing Rest Api Spring Security
Spring Boot 2.2.x + Spring 5.2.x Rest Api Security Example
Stars: ✭ 117 (-40.91%)
Mutual labels:  spring, springboot, spring-mvc, spring-security
Eshop Soa
EShop基于Dubbo实现SOA服务化拆分,并基于RocketMQ解决了分布式事务(新版SpringBootSOASkeleton)
Stars: ✭ 65 (-67.17%)
Mutual labels:  spring, spring-mvc, spring-security
Crypto Es
A cryptography algorithms library
Stars: ✭ 65 (-67.17%)
Mutual labels:  md5, aes, sha1
Cryptoswift
CryptoSwift is a growing collection of standard and secure cryptographic algorithms implemented in Swift
Stars: ✭ 8,846 (+4367.68%)
Mutual labels:  md5, aes, sha1
Reactive Spring Security 5 Workshop
Hands-On workshop for securing a reactive spring boot 2 application in multiple steps
Stars: ✭ 92 (-53.54%)
Mutual labels:  spring, spring-mvc, spring-security
Springboard
Spring Boot based production grade starter kit.
Stars: ✭ 59 (-70.2%)
Mutual labels:  spring, spring-mvc, spring-security
Oss.common
oss基础类库,主要涉及基础实体,加密算法,xml序列化,以及其他扩展方法等
Stars: ✭ 56 (-71.72%)
Mutual labels:  md5, aes, sha1
Servletjsptutorial
《Servlet & JSP 技術手冊 - 從 Servlet 到 Spring Boot》相關資源
Stars: ✭ 25 (-87.37%)
Mutual labels:  spring, spring-mvc, spring-security
Logback
💡 SpringBoot+Spring Security基本配置
Stars: ✭ 776 (+291.92%)
Mutual labels:  spring, springboot, spring-security
Spring Boot Shopping Cart
Simple shopping cart web app made using Spring Boot + Thymeleaf
Stars: ✭ 85 (-57.07%)
Mutual labels:  spring, spring-mvc, spring-security
Spring Summary
토비의 스프링 3.1 서적과 백기선님의 강좌를 토대로 스프링의 핵심 기술을 정리했습니다.
Stars: ✭ 106 (-46.46%)
Mutual labels:  spring, springboot, spring-mvc
Hybrid Crypto Js
RSA+AES hybrid encryption implementation for JavaScript. Works with Node.js, React Native and modern browsers.
Stars: ✭ 87 (-56.06%)
Mutual labels:  aes, rsa, encrypt
Ibase4j
Spring,SpringBoot 2.0,SpringMVC,Mybatis,mybatis-plus,motan/dubbo分布式,Redis缓存,Shiro权限管理,Spring-Session单点登录,Quartz分布式集群调度,Restful服务,QQ/微信登录,App token登录,微信/支付宝支付;日期转换、数据类型转换、序列化、汉字转拼音、身份证号码验证、数字转人民币、发送短信、发送邮件、加密解密、图片处理、excel导入导出、FTP/SFTP/fastDFS上传下载、二维码、XML读写、高精度计算、系统配置工具类等等。
Stars: ✭ 1,548 (+681.82%)
Mutual labels:  spring, springboot, spring-mvc
Spring Mvc Tutorial
Spring MVC 5 Tutorial - Guide to spring mvc framework
Stars: ✭ 121 (-38.89%)
Mutual labels:  spring, spring-mvc, spring-security

简体中文 | English

介绍

encrypt-body-spring-boot-starter是对SpringBoot控制器统一的响应体加密与请求体解密的注解处理方式,支持MD5/SHA/AES/DES/RSA。

加密解密支持

  • 可进行加密的方式有:
      • [x] MD5
      • [x] SHA-224 / 256 / 384 / 512
      • [x] AES
      • [x] DES
      • [ ] RSA
  • 可进行解密的方式有:
      • [x] AES
      • [x] DES
      • [ ] RSA

使用方法

  • pom.xml中引入依赖:
<dependency>
    <groupId>cn.licoy</groupId>
    <artifactId>encrypt-body-spring-boot-starter</artifactId>
    <version>1.0.4.RELEASE</version>
</dependency>
  • 在工程对应的Application类中增加@EnableEncryptBody注解,例如:
@EnableEncryptBody
@SpringBootApplication
public class Application {
    
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

}
  • 参数配置 在项目的application.ymlapplication.properties文件中进行参数配置,例如:
encrypt:  
    body:
      aes-key: 12345678 #AES加密秘钥
      des-key: 12345678 #DES加密秘钥
  • 对控制器响应体进行加密
@Controller
@RequestMapping("/test")
public class TestController {

    @GetMapping
    @ResponseBody
    @EncryptBody(value = EncryptBodyMethod.AES)
    public String test(){
        return "hello world";
    }

}

或者使用@RestController对整个控制器的方法响应体都进行加密:

@RestController
@EncryptBody
@RequestMapping("/test")
public class TestController {

    @GetMapping
    public String test(){
        return "hello world";
    }

}

注解一览表

开源协议

Apache 2.0

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].