Code Monkey home page Code Monkey logo

Comments (8)

gurpreet- avatar gurpreet- commented on May 29, 2024 1

Hello!

Glad you're enjoying Lazysodium! 🙌

Sure, of course I can add them for you and expose those sizes publicly.

It seems I missed all those pre-calculated functions out of the Lazy interface too (whoops!). Give me a sec and I'll add some in.

from lazysodium-java.

gurpreet- avatar gurpreet- commented on May 29, 2024 1

Hello again.

I just checked and it seems I did add those sizes into the Box interface.

// The byte sizes are available in their relevant interfaces like so...
byte[] sharedSecret = new byte[Box.BEFORENMBYTES];

You can find similar array sizes at the start of their respective interfaces. For example the KeyExchange interface has these byte sizes available for you:

public interface KeyExchange {

    int PUBLICKEYBYTES = 32;
    int SECRETKEYBYTES = 32;
    int SESSIONKEYBYTES = 32;
    int SEEDBYTES = 32;
    String PRIMITIVE = "x25519blake2b";

    // ... rest of interface
}

I've made a note to make that clearer in the documentation 👍

from lazysodium-java.

gurpreet- avatar gurpreet- commented on May 29, 2024 1

No worries @keeferrourke.

I've added lazier functions for the precalculation interface a.k.a Box.java (and fixed a minor typo in one of the functions). It's now available as release 1.1.1 on Bintray and GitHub.

If you have any more problems/questions, please let me know.

Until then, have fun! 🎆

from lazysodium-java.

gurpreet- avatar gurpreet- commented on May 29, 2024 1

Hey @keeferrourke,

If Lazysodium has helped you please consider donating. Even a dollar goes a long way.

Thanks for using Lazysodium :)

from lazysodium-java.

gurpreet- avatar gurpreet- commented on May 29, 2024 1

Hey @keeferrourke.

Thanks for the compliments! I got tired of using low quality libs a while ago 😪. I think I'm going to expand Lazysodium to the languages that run iOS, Mac and Windows so then devs can use it to build high quality cryptography applications. I personally would like to see a GPG rival but with a better interface so everyone can use it 😄

One off donations are totally fine too! Just created a Liberapay account https://liberapay.com/terlacious/

Thanks so much!

from lazysodium-java.

keeferrourke avatar keeferrourke commented on May 29, 2024

@gurpreet- much appreciated, thanks! 😄

from lazysodium-java.

keeferrourke avatar keeferrourke commented on May 29, 2024

@gurpreet- whoops, my bad. Thanks a bunch!

from lazysodium-java.

keeferrourke avatar keeferrourke commented on May 29, 2024

Hey @gurpreet- are you folks on Liberapay? I'd be happy throw a couple dollars your way, since this library is being developed so quickly and with extremely high quality. My usage is more one-off (but maybe I'd use it more in the future), but you saved me from having to write bindings myself 😉

from lazysodium-java.

Related Issues (20)

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.