Skip to content

Commit

Permalink
Merge branch 'master' of git://github.com/Fodaro/just-encrypt
Browse files Browse the repository at this point in the history
  • Loading branch information
HarryCutts committed Jan 28, 2014
2 parents 0cfe888 + bd733b5 commit fe0a2d3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Just Encrypt
============
Just Encrypt is a web page that encrypts and decrypts stuff using AES (through [SJCL](https://crypto.stanford.edu/sjcl/)). That's it.
Just Encrypt is a web page that encrypts and decrypts stuff using AES (through [SJCL](https://crypto.stanford.edu/sjcl/)). You can find it [here](http://users.ecs.soton.ac.uk/hc13g11/just-encrypt/). That's it.
3 changes: 3 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@

<textarea readonly rows="4" id="outputDisplay" placeholder="The encrypted or decrypted text will appear here."></textarea>

<div id="plainTextDiv"><a id="plainTextLink" rel="nofollow">Open as plain text</a> (right click &gt; Save link as... to download.) </div>

<!-- Descriptive text -->
<div class="columnContainer">
<div class="column" id="col1">
Expand Down Expand Up @@ -102,6 +104,7 @@ <h3 class="columnHeader">How does it work?</h3>
decryptRB = document.getElementById("decryptRB");
button = document.getElementById("button");
outputDisplay = document.getElementById("outputDisplay");
plainTextLink = document.getElementById("plainTextLink");
//-->
</script>
</body>
Expand Down
3 changes: 2 additions & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* along with Just Encrypt. If not, see <http://www.gnu.org/licenses/>.
*/

var pwField, dataField, outputDisplay, encryptRB, decryptRB, button;
var pwField, dataField, outputDisplay, encryptRB, decryptRB, button, plainTextLink;

function encrypt() {
var pw = pwField.value;
Expand Down Expand Up @@ -48,6 +48,7 @@ function decrypt() {

function output(text) {
outputDisplay.value = text;
plainTextLink.href = "data:text/plain," + text
}

function showPWConfirm() {
Expand Down
7 changes: 6 additions & 1 deletion stylesheet.css
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@ input.invalid {
width:25%;
}

#plainTextDiv {
text-align:right;
font-size:small;
padding-bottom:1em;
}

/* Text Styles */
p, li, div {
font-family:"Trebuchet",sans-serif;
Expand Down Expand Up @@ -129,7 +135,6 @@ h1, h2, h3 {
}

a:not([name]) { /* Any link that's not an anchor.*/
font-family:"Trebuchet",sans-serif;
color:#00BB00;
}
.subtitle {
Expand Down

0 comments on commit fe0a2d3

Please sign in to comment.