Comments (8)
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.
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.
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.
Hey @keeferrourke,
If Lazysodium has helped you please consider donating. Even a dollar goes a long way.
Thanks for using Lazysodium :)
from lazysodium-java.
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.
@gurpreet- much appreciated, thanks! 😄
from lazysodium-java.
@gurpreet- whoops, my bad. Thanks a bunch!
from lazysodium-java.
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)
- Support passing byte arrays to lazy methods instead of strings HOT 2
- Lazy Sodium on an M1 mac is not able to load libsodium properly HOT 13
- Lazysodium 5.1.1 doesn't load libsodium for Rocky Linux 8 HOT 1
- libsodium.so can't be loaded on Raspberry Pi OS due to missing libssp.so.0 library HOT 1
- 5.1.2 is not released to maven HOT 3
- ShortHash 'in' expected in hex format?
- Bundled sodium.dll cannot be loaded when path to JAR contains spaces HOT 1
- Provide module information HOT 1
- classes that support shortened number of parameters
- LazySodiumAndroid.cryptoKdfDeriveFromKey() throws an exception if key length exceeds 32 bytes
- help using sealed box for GitHub secret HOT 1
- LazySodium creates folders "resource-loader*" under /tmp folder HOT 1
- An error occurred with java. lang. NoClassDefFoundError
- sodiumHex2Bin silently accepts garbage input
- cryptoScalarMult takes inputs in the wrong order HOT 1
- Blake min bytes seems to be incorrect
- cryptoSign(String message, Key secretKey) does not use messageEncoder
- Lazysodium 5.1.4 - : Unable to load library libsodium.so on Mac M1 - not a mach-o file HOT 4
- Unable to load lazysodium with spring boot 3 and nested jars HOT 1
- update libsodium library
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lazysodium-java.