Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nevinmathew/generatesha-256token
SHA-256 Token Generator: A Java project showcasing the creation of HMAC-SHA-256 tokens using secret keys and messages, ideal for secure data authentication.
https://github.com/nevinmathew/generatesha-256token
authentication encryption hmac java security token-generation
Last synced: 7 days ago
JSON representation
SHA-256 Token Generator: A Java project showcasing the creation of HMAC-SHA-256 tokens using secret keys and messages, ideal for secure data authentication.
- Host: GitHub
- URL: https://github.com/nevinmathew/generatesha-256token
- Owner: nevinmathew
- Created: 2022-12-27T09:03:23.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-31T16:16:07.000Z (about 1 year ago)
- Last Synced: 2024-11-07T10:20:38.843Z (about 2 months ago)
- Topics: authentication, encryption, hmac, java, security, token-generation
- Language: Java
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SHA-256 Token Generator
This is a simple Java project for generating SHA-256 tokens using the HMAC-SHA-256 algorithm. This project provides a basic example of how to create a token using a secret key and a message.
## Usage
The Token Generator demonstrates how to create a SHA-256 HMAC token. You can customize it for your own use by modifying the following parts of the code:
• `asciiCs.encode("key").array()` - Replace `"key"` with your secret key.
• `asciiCs.encode("The quick brown fox jumps over the lazy dog").array()` - Replace the message with the data you want to hash.
## Example
After running the Token Generator, you will get a SHA-256 HMAC token printed in the console.