mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-07-13 16:43:53 +01:00
3d7db4dbc391f1e16aff5fc9c3ce58018d01b17a
btoa expects a string argument, so when passing it the ArrayBuffer object returned by getRandomBytes(), it's converted to a string by calling .toString() on it. This always results in "[object ArrayBuffer]", effectively resulting in a completely non-random password.
TextSecure Chromium Implementation
This is very early stuff and exists primarily to get the crypto in place. It is currently chromium-only as it uses NaCL for Curve25519 stuff, but I'd be glad to accept a pull that abstracts out the NaCL-specific stuff to optionally use a JS implementation for FF. Note that the code is currently quite messy (its all in one file!), but it needs to work first, then it can be heavily cleaned up later.
Languages
TypeScript
92.1%
SCSS
4.2%
JavaScript
3.2%
CSS
0.2%