rawr-x3dh VS crypto

Compare rawr-x3dh vs crypto and see what are their differences.

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
rawr-x3dh crypto
1 3
65 25
- -
0.8 7.2
about 1 year ago 5 months ago
TypeScript TypeScript
ISC License Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

rawr-x3dh

Posts with mentions or reviews of rawr-x3dh. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-02-06.

crypto

Posts with mentions or reviews of crypto. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-09-08.
  • Typescript/WASM library with cryptographic operations based on libsodium, Shamir secret sharing, Merkle trees. Runs on Nodejs and the browser. Feedback is encouraged!
    1 project | /r/crypto | 24 Jan 2023
  • The Risks of WebAssembly
    5 projects | news.ycombinator.com | 8 Sep 2022
    From my recent experience with WebAssembly developing a cryptographic library for Nodejs and the browser [1], I have to say that once someone needs to use memory allocation, typed arrays from JS to WASM (I did not manage to make the opposite work) etc. it quickly becomes obvious that there is lack of documentation and build system fragmentation that only hurts community growth IMO. If I was less motivated to finish the undertaking, I would just give up and go with libsodium-wrappers or tweetnacljs.

    I started with clang targeting wasm32-unknown-unknown-wasm as my build system but this just did not work with malloc/free, unless I was targeting WASI, but if I targeted WASI I would not be able to run the module in the browser except with a polyfill that was hard to set up with C/TS stack. I ended up with emscripten because it was importing the module with all the right helper functions but there I was getting memory errors on debug mode but not in production. I needed to pass the Uint8Arrays from JS to WASM in a very specific way (with HEAP8), otherwise the pointers were not working properly, but I was not able to find this in the documentation. I only found out from a stackoverflow comment somewhere after two weeks of brain melting (why would Uint8Array(memory.buffer, offset, len).byteOffset not work?).

    After I compiled the project successfully and the JS was giving the correct results, I decided to compile with -s SINGLE_FILE command in order to make the package as portable as possible, but this increased the size significantly because it translates the bytes into base64 that are then converted into WASM module from JS. A package manager of a compiled language that outputs cross-env JS that solves these problems automagically would be, IMO again, a game changer for the ecosystem. I believe this is what AssemblyScript tries to achieve but I honestly could not make it work for my project after experimenting with it for one or two days.

    I get that a lot of the problems come from the incompatibility of browser and Nodejs APIs and different agendas from the various stakeholders, but I would very much like to see these differences be reconciled so that we can have a good developer experience for cross-platform WASM modules, which will lead to more high-performance components for JS, which is a programming language that affects so many people.

    [1] https://github.com/deliberative/crypto

  • Show HN: WASM/TS library for Ed25519, Shamir secret sharing, AEAD secret boxes
    1 project | news.ycombinator.com | 7 Sep 2022

What are some alternatives?

When comparing rawr-x3dh and crypto you can also consider the following projects:

wire-webapp - 👽 Wire for web

e2esdk - SDK to build end-to-end encrypted web applications

zkp-ecdsa - Proves knowledge of an ECDSA-P256 signature under one of many public keys that are stored in a list.

stringref

minisign-php - PHP implementation of Minisign

json-hash - JCS (JSON Canonicalization Scheme), JSON digests, and JSON Merkle hashes

monocypher-wasm - WebAssembly port and JS wrapper library for Monocypher (https://monocypher.org)

component-model - Repository for design and specification of the Component Model

javascript-obfuscator - A powerful obfuscator for JavaScript and Node.js

Nest - A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript 🚀