https://github.com/lightweight-component/aj-security
Captcha for Java
https://github.com/lightweight-component/aj-security
Last synced: 10 months ago
JSON representation
Captcha for Java
- Host: GitHub
- URL: https://github.com/lightweight-component/aj-security
- Owner: lightweight-component
- License: apache-2.0
- Created: 2024-10-31T06:57:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-12T03:14:24.000Z (over 1 year ago)
- Last Synced: 2024-11-12T04:20:11.856Z (over 1 year ago)
- Language: Java
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://central.sonatype.com/artifact/com.ajaxjs/aj-security)

[](https://javadoc.io/doc/com.ajaxjs/aj-security )

[](https://deepwiki.com/lightweight-component/aj-security)
[](http://www.apache.org/licenses/LICENSE-2.0.txt)
[](mailto:frank@ajaxjs.com)
[](./README.zh-CN.md)
# AJ Security, A Small security library
Based on the Spring/HandlerInterceptor mechanism, this library abstracts a set of filtering/validation mechanisms, forming a unified invocation chain that is flexibly configurable and extensible. The architecture of this security framework is simple, the code is concise, and it has no additional dependencies, making it suitable for any Spring-based project. Spring Boot applications can use it out of the box by simply importing the jar package.
The features of this framework include:
- HTTP Web Security
- HTTP Referer validation
- Timestamp encrypted token validation
- IP whitelist/blacklist
- Prevention of duplicate submissions
- IP region-based restrictions (TODO)
- General Web Validation
- XSS attack prevention
- CRLF attack prevention
- Cookie size check
- HTTP Standard Authentication
- HTTP Basic Auth authentication
- HTTP Digest Auth authentication
- Captcha Mechanisms
- Simple Java image captcha
- Image captcha based on kaptcha
- Captcha based on Google Recaptcha
- Captcha based on CloudFlare Turnstile
- API Interface Features
- Rate limiting and quota (TODO)
- Other Practical Features
- Entity field desensitization
- API interface encryption/decryption
The code of AJ Security is small, straightforward and well commented. There are not much third-party dependencies, just Java 8 requires.
For further details, please refer to the [User Manual](https://security.ajaxjs.com).
## Install
Runs on Java 8+. Maven:
```xml
com.ajaxjs
aj-security
1.0
```
## Source Code
Under Apache License v3.0.
- Github: [https://github.com/lightweight-component/aj-security](https://github.com/lightweight-component/aj-security)
- Gitcode: [https://gitcode.com/lightweight-component/aj-security](https://gitcode.com/lightweight-component/aj-security), for Chinese users faster access.
## Links
[User Manual](https://security.ajaxjs.com) | [JavaDoc](https://javadoc.io/doc/com.ajaxjs/aj-security) | [DeepWiki](https://deepwiki.com/lightweight-component/aj-security)