diff --git a/index.html b/index.html
index 3baaa5a..a83801e 100644
--- a/index.html
+++ b/index.html
@@ -21,6 +21,7 @@
+
@@ -191,7 +192,7 @@
-
+
@@ -200,6 +201,12 @@
+
+
+
+
+
+
Address Options
You can use the advanced options below to generate different kind of keys and addresses.
@@ -209,6 +216,27 @@
+
+
+
+
+
+
+
+
+
Your passwords do not match, please try again!
+
+
+
+
+
diff --git a/js/coinbin.js b/js/coinbin.js
index c77bee4..4833ce5 100644
--- a/js/coinbin.js
+++ b/js/coinbin.js
@@ -249,6 +249,15 @@ $(document).ready(function() {
$("#newBitcoinAddress").val(coin.address);
$("#newPubKey").val(coin.pubkey);
$("#newPrivKey").val(coin.wif);
+
+ /* encrypted key code */
+ if((!$("#encryptKey").is(":checked")) || $("#aes256pass").val()==$("#aes256pass_confirm").val()){
+ $("#aes256passStatus").addClass("hidden");
+ } else {
+ $("#aes256passStatus").removeClass("hidden");
+ }
+ $("#newPrivKeyEnc").val(CryptoJS.AES.encrypt(coin.wif, $("#aes256pass").val())+'');
+
});
$("#newBrainwallet").click(function(){
@@ -259,6 +268,14 @@ $(document).ready(function() {
}
});
+ $("#encryptKey").click(function(){
+ if($(this).is(":checked")){
+ $("#ase256wifkey, #aes256passform").removeClass("hidden");
+ } else {
+ $("#ase256wifkey, #aes256passform, #aes256passStatus").addClass("hidden");
+ }
+ });
+
/* new -> multisig code */
$("#newMultiSigAddress").click(function(){