diff options
author | Maximilian Krambach <[email protected]> | 2018-04-18 14:38:06 +0000 |
---|---|---|
committer | Maximilian Krambach <[email protected]> | 2018-04-20 13:24:13 +0000 |
commit | 6ab25e40d904007755c5d999bf66ae264236e745 (patch) | |
tree | c9f6bff260f9cc0d7c0466f6caf316ade679c33e /lang/js/ui2.html | |
parent | Merge branch 'master' into javascript-binding (diff) | |
download | gpgme-6ab25e40d904007755c5d999bf66ae264236e745.tar.gz gpgme-6ab25e40d904007755c5d999bf66ae264236e745.zip |
js: encrypt improvement and decrypt method
* Compatibility class gpgme_openpgpjs offers an API that should accept
openpgpjs syntax, throwing errors if a parameter is unexpected/not
implemented
* tried to be more generic in methods
* waiting for multiple answers if 'more' is in the answer
* more consistency checking on sending and receiving
* updated the example extension
--
Diffstat (limited to 'lang/js/ui2.html')
-rw-r--r-- | lang/js/ui2.html | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/lang/js/ui2.html b/lang/js/ui2.html new file mode 100644 index 00000000..8d0abd97 --- /dev/null +++ b/lang/js/ui2.html @@ -0,0 +1,33 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"> + <link rel="stylesheet" href="ui.css"/> + <script src="dist/gpgmejs.bundle.js"></script> + <script src="testapplication.js"></script> + </head> + <body> + <ul> + <li> + <span class="label">Text: </span> + <input type="text" id='cleartext' /> + </li> + <li> + <span class="label">Public key ID: </span> + <input type="text" id="pubkey" value="" /> + </li> + </ul> + <button id="buttonencrypt">Encrypt</button><br> + <hr> + <ul> + <li> + <span class="label">Encrypted armored Text: </span> + <textarea rows="5" cols="65" id="ciphertext" wrap="hard"></textarea> + </li> + </ul> + <button id="buttondecrypt">Decrypt</button><br> + <hr> + <h3>Result data:</h3> + <textarea id="answer" rows="5" cols="65" wrap="hard"></textarea> + </body> +</html> |