Skip to content

Commit

Permalink
misc: first commit
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo <[email protected]>
  • Loading branch information
lfaoro committed May 1, 2019
1 parent 1c522d5 commit 1943758
Show file tree
Hide file tree
Showing 776 changed files with 411,491 additions and 307 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
.idea
.vscode
ncrypt
secret.json
secret.json
todo.md
*.ncrypt
testFile
testFile.bck
File renamed without changes.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

run:
go install ./cmd/ncrypt/
35 changes: 22 additions & 13 deletions readme.md → README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,38 @@
WIP: this project is a Work-In-Progress, we're experimenting with the idea and its utility.
It is not released, nor stable, nor reliable; there are no functional tests yet.

ncrypt is for your data, what a vault is for your bank. Valuables should be protected.

## Easy to use

```bash
# Encrypt using default key
$ ncrypt thedoc.docx
thedoc.docx successfully encrypted.
$ ncrypt genesis.doc
[+] Encrypted genesis.doc

$ ncrypt genesis.doc
[+] Decrypted genesis.doc

$ ncrypt thedoc.docx.safe
thedoc.docx successfully decrypted.
$ ncrypt upload genesis.doc
[+] Uploaded genesis.doc
[#] Download reference: 2E3fde2a-genesis.doc
[#] Expires: 24 hours

$ ncrypt -key='abracadabra' info.txt
info.txt successfully encrypted using key 'abracadabra'
$ ncrypt download 2E3fde2a-genesis.doc
[+] Downloaded genesis.doc

$ ncrypt -key info.txt
info.txt successfully encrypted using generated-key '53JzhILXUERPYozNX4C/M2gfooGJL1D6UWA2yB3HgHM'
$ ncrypt -key genesis.doc
[+] Password: *******
[+] Encrypted genesis.doc

$ ncrypt share info.txt
info.txt available for download: https://ncrypt.io/EhiYm298 (TTL 24h)
$ ncrypt genesis.doc
[+] Password: ******
[+] Decrypted genesis.doc
```
## Super secure
Authenticated Encryption with Additional Authenticated Data (AEAD) couples confidentiality
and integrity. The most popular AEAD today, AES-GCM.
and integrity. Using the most popular AEAD today, AES-GCM.
ref paper: https://eprint.iacr.org/2017/168.pdf
Expand All @@ -32,7 +41,7 @@ ref paper: https://eprint.iacr.org/2017/168.pdf
ncrypt stores the encryption keys in a `key` file, located in `$HOME/.config/ncrypt`
To comply with regulations you might need to generate encryption keys using a Hardware Security Module aka HSM.
Ncrypt comes with a HSM security plugin for GCP and AWS. These providers offer HSM as a service.
ncrypt comes with a HSM security plugin for GCP and AWS. These providers offer HSM as a service.
Configure the GCP/AWS environment variables in order to activate Cloud HSM; ref: https://.
Expand Down
39 changes: 2 additions & 37 deletions go.sum

Large diffs are not rendered by default.

174 changes: 0 additions & 174 deletions main.go

This file was deleted.

Binary file removed readme.md.ncrypt
Binary file not shown.
20 changes: 0 additions & 20 deletions share.go

This file was deleted.

62 changes: 0 additions & 62 deletions upload.go.go

This file was deleted.

15 changes: 15 additions & 0 deletions vendor/cloud.google.com/go/AUTHORS

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 40 additions & 0 deletions vendor/cloud.google.com/go/CONTRIBUTORS

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1943758

Please sign in to comment.