Skip to content

Commit

Permalink
modifying the content to be encrypted
Browse files Browse the repository at this point in the history
  • Loading branch information
charlyoleg committed May 9, 2019
1 parent e881178 commit 1431c53
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
8 changes: 4 additions & 4 deletions encryption_preparation/admin_input.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ exports.key_hash_salt = "blablasalt";

// html to encrypt
// the content differ between users as they may get links to different locations
var index_jim = "hi jim<br><a href=\"hidden/a5368xjlspsawjx61xhaux5/index.html\">hidden page</a><br><a href=\"next.html\">encrypted page</a>";
var index_jack = "hi jack<br><a href=\"hidden/h6yz6d4lsg7knctyre96yo6/index.html\">hidden page</a><br><a href=\"next.html\">encrypted page</a>";
var next_jim = "Hi Jim! This is an new encrypte page.";
var next_jack = "Hi jack! This is an new encrypte page. You might see something different from jack.<br><a href=\"hidden/h6yz6d4lsg7knctyre96yo6/index.html\">one linke</a>";
var index_jim = "hi jim<br><a href=\"hidden/a5368xjlspsawjx61xhaux5/index.html\">hidden page</a><br><a href=\"next.html\">encrypted page</a><br>Updated in 2019";
var index_jack = "hi jack<br><a href=\"hidden/h6yz6d4lsg7knctyre96yo6/index.html\">hidden page</a><br><a href=\"next.html\">encrypted page</a><br>Updated in 2019";
var next_jim = "Hi Jim! This is an new encrypte page.<br>Updated in 2019";
var next_jack = "Hi jack! This is an new encrypte page. You might see something different from jack.<br><a href=\"hidden/h6yz6d4lsg7knctyre96yo6/index.html\">one linke</a><br>Updated in 2019";

exports.page_name = ["index", "next"];
exports.page_content = [index_jim, index_jack, next_jim, next_jack];
Expand Down
5 changes: 5 additions & 0 deletions package-lock.json

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

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
"name": "encrypted_html",
"version": "1.0.0",
"description": "encrypting pieces of html, to be decrypted later on in the browser",
"main": "index.js",
"main": "encryption_preparation/encrypt_html.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"preparation": "node encryption_preparation/encrypt_html.js",
"start": "live-server web"
},
"keywords": [],
Expand All @@ -15,6 +16,7 @@
"url": "https://github.com/charlyoleg/encrypted_html"
},
"dependencies": {
"crypto-js": "^3.1.9-1",
"live-server": "^1.2.1"
}
}

0 comments on commit 1431c53

Please sign in to comment.