paseto4j
Paseto implementation for Java
File Explorer
Download Latest Version (.zip)- bug_report.md
- feature_request.md
- build.yml
- bump_version.yml
- codeql-analysis.yml
- release.yml
- welcome.yml
- dependabot.yml
- FUNDING.yml
- maven-wrapper.jar
- maven-wrapper.properties
- MavenWrapperDownloader.java
- jvm.config
- ByteUtils.java
- Conditions.java
- Hex.java
- HexToBytes.java
- Pair.java
- PasetoException.java
- PreAuthenticationEncoder.java
- Purpose.java
- SecretKey.java
- Token.java
- TokenAlgorithm.java
- TokenOut.java
- Version.java
- ByteUtilsTest.java
- ConditionsTest.java
- HexTest.java
- HexToBytesTest.java
- PreAuthenticationEncoderTest.java
- SecretKeyTest.java
- TestVectors.java
- TokenTest.java
- v3.json
- v4.json
- LICENSE.txt
- pom.xml
- java
- default.html
- _config.yml
- index.md
- Version1.java
- Version2.java
- LICENSE.txt
- pom.xml
- CryptoFunctions.java
- Paseto.java
- PasetoLocal.java
- PasetoPublic.java
- CryptoFunctionsTest.java
- PasetoLocalTest.java
- PasetoPublicTest.java
- LICENSE.txt
- pom.xml
- Paseto.java
- PasetoLocal.java
- PasetoPublic.java
- PrivateKey.java
- PublicKey.java
- PasetoLocalTest.java
- PasetoPublicTest.java
- PrivateKeyTest.java
- PublicKeyTest.java
- LICENSE.txt
- pom.xml
- CryptoFunctions.java
- Paseto.java
- PasetoLocal.java
- PasetoPublic.java
- PasetoLocalTest.java
- PasetoPublicTest.java
- LICENSE.txt
- pom.xml
- CryptoFunctions.java
- Paseto.java
- PasetoLocal.java
- PasetoPublic.java
- XChaCha20Engine.java
- PasetoLocalTest.java
- PasetoPublicTest.java
- LICENSE.txt
- pom.xml
- .gitignore
- CHANGELOG.md
- CODE_OF_CONDUCT.md
- CONTRIBUTING.md
- Dockerfile
- LICENSE.txt
- mvnw
- mvnw.cmd
- pom.xml
- README.md
# Installation Guide
1. Get the code
git clone https://github.com/nbaars/paseto4j
Downloads the entire project code from GitHub to your computer.
cd paseto4j
Moves into the project folder you just downloaded.
2. Official Install Script
Easy RecommendedPrerequisites
- Homebrew A package manager for macOS/Linux.
brew install libsodium
Installs the pre-built package via Homebrew β no source build required.
After installing, open a new terminal and run the program's version command (e.g. --version) to confirm it worked.
Pulled directly from this repo's README.
3. Docker
EasyPrerequisites
- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker build -t paseto4j .
Builds a runnable image based on the Dockerfile.
docker run -v "${HOME}"/.m2:/root/.m2 -v "${PWD}":/workspace paseto4j ./mvnw verify
Runs the built image as an actual container.
Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.
Pulled directly from this repo's README.
4. Maven (Java)
MediumPrerequisites
- Git Needed to download the project code from GitHub.
- JDK (Java) Required to build and run Java projects.
- Maven The build tool used for the mvn command.
cd commons
This project's files live in a subfolder, so move into it first.
mvn clean install
Installs dependencies and builds the project using Maven.
A BUILD SUCCESS message means it worked. The output is created under target/.
// repository documentation
Was this content helpful?
(0 ratings)
