Comments (2)
Bytes on the JVM are signed: negative numbers are not a bug. But more importantly there's no guarantee that an Ed25519 key pair is a valid UTF-8 sequence, nor that it can be interpreted as a sequence of code points encodeable as UTF-8 (whatever that means in practice).
If you want to represent an arbitrary sequence of bytes as human readable text you're going to need an encoding scheme like hex encoding, base32, base64... or something like a QR code.
from caesium.
Yeah turns out I misunderstood what I have to do for implementation of the protocol 🤦. I need to encode it as base64, not UTF-8.
from caesium.
Related Issues (20)
- AuthN & AuthZ ? HOT 4
- Bindings for Ed25519 to Curve25519 HOT 2
- shorthash is now exposed but the CHANGELOG doesn't mention it
- Error on binding.clj HOT 29
- Write a generic test that tests that functions that should fail with an exception have a negative path HOT 2
- Add crypto_secretstream_xchacha20poly1305 API HOT 3
- Inscrutable errors when libsodium is not installed HOT 3
- Any help needed? HOT 2
- Ristretto255 API is available in libsodium 1.0.18+ only HOT 3
- pwhash tests fail under cloverage HOT 10
- Unable to decrypt strings encrypted with `secretbox-nmr` across JVM restarts on MacOS HOT 3
- Release 0.14.0? HOT 2
- AOT fails on some JDKs HOT 10
- Error "unable to load native libsodium" but the system does have it HOT 7
- Need help with a JNI issue HOT 6
- Use with Github Actions secrets HOT 1
- GraalVM native compilation issues HOT 5
- Using `caesium` on Apple Silicon (M1, `aarch64`) HOT 6
- Side-effect, loading Sodium too early HOT 2
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 caesium.