# Add \(X\)Salsa20 and NaCl boxes · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/28fb97f1885ea54dd2a1ee2d06b2a73b009b1850)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 28fb97f1885ea54dd2a1ee2d06b2a73b009b1850

Requested commit: 28fb97f1885ea54dd2a1ee2d06b2a73b009b1850

Commit: 28fb97f1885ea54dd2a1ee2d06b2a73b009b1850

Tree: 1c97f6fb613d0276e6418d8b173073918ad39fb7

Author: Frank Denis

Committer: Frank Denis

## Message

```
Add (X)Salsa20 and NaCl boxes

The NaCl constructions are available in pretty much all programming
languages, making them a solid choice for applications that require
interoperability.

Go includes them in the standard library, JavaScript has the popular
tweetnacl.js module, and reimplementations and ports of TweetNaCl
have been made everywhere.

Zig has almost everything that NaCl has at this point, the main
missing component being the Salsa20 cipher, on top on which NaCl's
secretboxes, boxes, and sealedboxes can be implemented.

So, here they are!

And clean the X25519 API up a little bit by the way.

```

## Parents

- [59af275680ad12f7da4dcc5b41a2cab707ec2ffa](https://git.cafe/gitcafe/zig/commit/59af275680ad12f7da4dcc5b41a2cab707ec2ffa?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/28fb97f1885ea54dd2a1ee2d06b2a73b009b1850?format=markdown)
