Skip to content

Commit

Permalink
Add decryption options to UI.
Browse files Browse the repository at this point in the history
  • Loading branch information
agibbons27 committed May 24, 2024
1 parent 05f15e1 commit 19a42bc
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/thumbtack/static/js/thumbtack.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,13 @@ function copyToClipboard(str) {
el.select();
document.execCommand('copy');
document.body.removeChild(el);
}

function toggleKey() {
var x = document.getElementById("key");
if (x.type === "password") {
x.type = "text";
} else {
x.type = "password";
}
}
14 changes: 14 additions & 0 deletions src/thumbtack/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,20 @@ <h2>Path to disk images: <a href="{{ url_for('.mount') }}" >{{ image_dir }}</a><
<form class="myForm" method="post" action="{{ url_for('.mount_form') }}">
<input type="hidden" name="img_to_mount" value="{{ image.rel_path }}">
<input type="hidden" name="operation" value="mount">
<span id="dec_caret" class="caret">Decryption options</span>
<ul class="nested">
<label for="decryption_methods">Decryption Method:</label>
<select name="decryption methods" id="decryption_methods">
<option value="none">---</option>
<option value="bitlocker password">bitlocker password</option>
<option value="bitlocker recovery key">bitlocker recovery key</option>
<option value="bitlocker full volume encryption and tweak key">bitlocker full volume encryption and tweak key</option>
<option value="luks passphrase">luks passphrase</option>
</select>
<label for="key">Decryption key:</label>
<input type="password" id="key" name="key">
<input type="checkbox" onclick="toggleKey()">Show key
</ul>
<button>Mount</button>
</form>
{% endif %}
Expand Down

0 comments on commit 19a42bc

Please sign in to comment.