Coder Social home page Coder Social logo

hashmapsdata2value / lazysodium-java Goto Github PK

View Code? Open in Web Editor NEW

This project forked from algorandfoundation/lazysodium-java

0.0 0.0 0.0 16.89 MB

A Java implementation of the Libsodium crypto library. For the lazy dev.

Home Page: https://github.com/terl/lazysodium-java/wiki

License: Mozilla Public License 2.0

Java 97.09% Kotlin 2.91%

lazysodium-java's Introduction

Why this Fork

This fork was created to make the Ed25519 low-level API functions available, e.g. Ed25519 scalar multiplication. While Ristretto255 and Curve25519 do have all or some methods exposed, Ed25519 do not.

Additionally, since this is meant to be used for Algorand's wallet the LazySodium-Android files (SodiumAndroid, LazySodiumAndroid, Base64) have been added under the main path. However, the binaries are not kept together with the Linux/Mac/Windows binaries, they can be found in the LazySodium-Android repository here. Just as the binaries are stored under lazysodium-android/app/src/main /jniLibs/ you should copy+paste them into your Android app in the equivalent path with the same jniLibs folder name, and then adjust the build gradle file accordingly.

Check out this Arc52 sample Android app for further clarification.

Lazysodium for Java

Lazysodium is a complete Java (JNA) wrapper over the Libsodium library that provides developers with a smooth and effortless cryptography experience.

Checks Maven Central

Features

This library is fully compatible with Kotlin.

You can find an up-to-date feature list here.

Quick start

Please view the official documentation for a more comprehensive guide.

The following example is for users of the build tool Gradle:

// Top level build file
repositories {
    // Add this to the end of any existing repositories
    mavenCentral() 
}

// Project level dependencies section
dependencies {
    implementation "com.goterl:lazysodium-java:VERSION_NUMBER"
    implementation "net.java.dev.jna:jna:JNA_NUMBER"
}

Substitute VERSION_NUMBER for the version in this box:

Maven Central

Substitute JNA_NUMBER for the latest version of JNA.

Documentation

Please view our official documentation to get started.

Examples

There are some example projects available here.

Lazysodium for Android

We also have an Android implementation available at Lazysodium for Android. It has the same API as this library, so you can share code easily!


Created by Terl.

lazysodium-java's People

Contributors

gurpreet- avatar hashmapsdata2value avatar dmitry-timofeev avatar kevinroebert avatar gnarula avatar traderjoe95 avatar coder-hugo avatar erikvanzijst avatar rmtmckenzie avatar timmc avatar kakawait avatar makarovs avatar paulseiziger avatar vogt31337 avatar lomigmegard avatar jeremi avatar hendrikebbers avatar gamerson avatar tyilo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.