-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
61 lines (45 loc) · 1.7 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
nacltools-20101015
Jay Sullivan
Public Domain
This project, nacltools, provides commandline tools for the cryptographic operations provided by NaCl: Networking and Cryptography library ( see http://nacl.cr.yp.to/ ).
------------------
-- Installation --
------------------
First, download and build NaCl :
cd
wget http://hyperelliptic.org/nacl/nacl-20100830.tar.bz2
bunzip2 < nacl-20100830.tar.bz2 | tar -xf -
cd nacl-20100830
./do
Then, install the NaCl headers to /usr/include/nacl and NaCl libraries to /usr/lib :
cd build/`hostname -s`
sudo mkdir /usr/include/nacl && sudo cp include/`bin/okabi`/* /usr/include/nacl
sudo mkdir /usr/lib/nacl && sudo cp lib/`bin/okabi`/* /usr/lib
Finally, download and install nacltools ( installs to /usr/local/bin/ and man pages to /usr/share/man/man1/ ) :
cd
git clone git://github.com/notfed/nacltools.git
cd nacltools
make
sudo make install
------------------
-- Commands --
------------------
-- Asymmetric Cryptography --
- crypto-box-keypair
Creates a public key and a secret key.
- crypto-box
Encrypts and authenticates a stream of data using asymmetric cryptography
- crypto-box-open
Verifies and decrypts a stream of data using asymmetric cryptography
-- Symmetric Cryptography --
- crypto-secretbox-key
Creates a secret key.
- crypto-secretbox
Encrypts and authenticates a stream of data using symmetric cryptography
- crypto-secretbox-open
Verifies and decrypts a stream of data using symmetric cryptography
-- Key Encoding --
- nacl-key-encode
Takes a 32-byte key as input, and encodes it into a 51-byte string in base-32 format
- nacl-key-decode
Takes a 51-byte string in base-32 format, and encodes it into a 32-byte key