aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Ghigonis <laurent@p1sec.com>2013-06-17 10:38:09 +0200
committerLaurent Ghigonis <laurent@p1sec.com>2013-06-17 10:38:09 +0200
commit618b93e61a7f2f16fbaea9fcbb877bbe157e01fd (patch)
tree836390f3c4de1c39d96272b04b4a74556b638a50
parentjsaccess: readme wording (diff)
downloadlaurent-tools-618b93e61a7f2f16fbaea9fcbb877bbe157e01fd.tar.xz
laurent-tools-618b93e61a7f2f16fbaea9fcbb877bbe157e01fd.zip
jsaccess: rename encrypt.sh -> store.sh
-rw-r--r--jsaccess/README.txt14
-rw-r--r--jsaccess/doc/put_your_encrypted_files_here.txt2
-rw-r--r--jsaccess/jsa/jsa.js2
-rwxr-xr-xjsaccess/store.sh (renamed from jsaccess/encrypt.sh)6
4 files changed, 12 insertions, 12 deletions
diff --git a/jsaccess/README.txt b/jsaccess/README.txt
index bfb5307..16f2c98 100644
--- a/jsaccess/README.txt
+++ b/jsaccess/README.txt
@@ -32,9 +32,9 @@ Deployment
There are 2 parts:
* The jsa/ directory that contains html / javascript files, for the user to
access files list and download. jsa/files/ is the files store.
-* The encrypt.sh script for the web server owner to encrypt files
-It is recomanded to run encrypt.sh on your laptop, and then syncronise the
-jsa/files/ file store.
+* The store.sh script for the web server owner to encrypt files
+It is recomanded to run store.sh on your laptop, and then syncronise the
+jsa/files/ file store with your server.
Put jsa/ directory on your web server, publicly available.
@@ -45,7 +45,7 @@ Share a file
1. Add the file you want to share to the file store
On your laptop:
-$ ./encrypt.sh myfile
+$ ./store.sh myfile
# Then enter the passphase you want to use for encryption.
# It will tell you something like:
jsa/files/af022cd820fdad6cbcac8e15ac565c639a47dab0
@@ -64,7 +64,7 @@ $ rsync jsa/ user@myserver:/var/www/htdocs/
How it works
============
-encrypt.sh creates a directory jsa/files/<rmd160_hash_of_passphrase>/.
+store.sh creates a directory jsa/files/<rmd160_hash_of_passphrase>/.
It encrypts your file using AES256 with the passphrase and stores the result in
jsa/files/<rmd160_hash_of_passphrase>/<rmd160_hash_of_(passphrase+filename)>.
It also updates the index of available files per directory called index.txt,
@@ -82,7 +82,7 @@ Filesaver JS API.
Dependencies
============
-On the host that runs encrypt.sh:
+On the host that runs store.sh:
* openssl
* base64
@@ -97,7 +97,7 @@ Git content
jsa/ - should be on your webserver, can be renamed
jsa/files/<password_hash>/ - directory of files to download for a given password
jsa/files/<password_hash>/index.txt - list of file name available
-encrypt.sh - to encrypt your files before uploading them to your web server
+store.sh - to encrypt your files before uploading them to your web server
TODO
diff --git a/jsaccess/doc/put_your_encrypted_files_here.txt b/jsaccess/doc/put_your_encrypted_files_here.txt
index 941ae3e..2cab735 100644
--- a/jsaccess/doc/put_your_encrypted_files_here.txt
+++ b/jsaccess/doc/put_your_encrypted_files_here.txt
@@ -4,7 +4,7 @@ decrypted OK !
To a new file to download:
-$ ./encrypt.sh README.txt
+$ ./store.sh README.txt
Enter passphrase used to encrypt: jsa
jsa/files/af022cd820fdad6cbcac8e15ac565c639a47dab0
CREATED jsa/files/af022cd820fdad6cbcac8e15ac565c639a47dab0/065e18a7f246b800242a778a6e8dd07a3321dac6
diff --git a/jsaccess/jsa/jsa.js b/jsaccess/jsa/jsa.js
index c9cc923..138ed84 100644
--- a/jsaccess/jsa/jsa.js
+++ b/jsaccess/jsa/jsa.js
@@ -1,4 +1,4 @@
-/* jsaccess - download and decrypt files in the browser
+/* jsaccess - private web file sharing using client side crypto
* jsa.js: Main javascript file */
/*
diff --git a/jsaccess/encrypt.sh b/jsaccess/store.sh
index 5663b9e..71a42c2 100755
--- a/jsaccess/encrypt.sh
+++ b/jsaccess/store.sh
@@ -1,7 +1,7 @@
#!/bin/sh
-# jsaccess - download and decrypt files in the browser
-# encrypt.sh: file encrytion script
+# jsaccess - private web file sharing using client side crypto
+# store.sh: file encrytion script
# Copyright (c) 2013 Laurent Ghigonis <laurent@gouloum.fr>
#
@@ -24,7 +24,7 @@ cleanup() {
}
if [ $# -ne 1 ]; then
- echo "usage: encrypt.sh <myfile>"
+ echo "usage: store.sh <myfile>"
exit 1
fi
myfile=$1