reorganization-edit docs for WP
This commit is contained in:
1 parent
532a6b69d9
commit
bdc9eae000
59 files changed
+3184
-2148
No files matched your search
@@ -0,0 +1,36 @@
|
||||
---
|
||||
title: Encryption and Weave Net
|
||||
layout: default
|
||||
---
|
||||
|
||||
|
||||
|
||||
Weave can be configured to encrypt both the data passing over the TCP
|
||||
connections and the payloads of UDP packets sent between peers. This
|
||||
is accomplished using the [NaCl](http://nacl.cr.yp.to/) crypto
|
||||
libraries, employing Curve25519, XSalsa20 and Poly1305 to encrypt and
|
||||
authenticate messages. Weave protects against injection and replay
|
||||
attacks for traffic forwarded between peers.
|
||||
|
||||
NaCl was selected because of its good reputation both in terms of
|
||||
selection and implementation of ciphers, but equally importantly, its
|
||||
clear APIs, good documentation and high-quality
|
||||
[go implementation](https://godoc.org/golang.org/x/crypto/nacl). It is
|
||||
quite difficult to use NaCl incorrectly. Contrast this with libraries
|
||||
such as OpenSSL where the library and its APIs are vast in size,
|
||||
poorly documented, and easily used wrongly.
|
||||
|
||||
There are some similarities between Weave's crypto and
|
||||
[TLS](https://tools.ietf.org/html/rfc4346). Weave does not need to cater
|
||||
for multiple cipher suites, certificate exchange and other
|
||||
requirements emanating from X509, and a number of other features. This
|
||||
simplifies the protocol and implementation considerably. On the other
|
||||
hand, Weave needs to support UDP transports, and while there are
|
||||
extensions to TLS such as [DTLS](https://tools.ietf.org/html/rfc4347)
|
||||
which can operate over UDP, these are not widely implemented and
|
||||
deployed.
|
||||
|
||||
**See Also**
|
||||
|
||||
* [How Weave Implements Encryption](/site/encryption/ephemeral-key.md)
|
||||
* [Securing Containers Across Untrusted Networks](/site/using-weave/security-untrusted-networks.md)
|
||||
Reference in new issue
Block a user