Remove option to disable encryption

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2017-08-04 15:17:30 +02:00
parent 1d84f122ac
commit 79595ad2a6
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
4 changed files with 10 additions and 17 deletions

File diff suppressed because one or more lines are too long

View file

@ -3,7 +3,6 @@ securePassword = null
createSecret = () ->
secret = $('#formCreateSecret').find('textarea').val()
if $('#extra').prop 'checked'
securePassword = Math.random().toString(36).substring(2)
secret = GibberishAES.enc(secret, securePassword)

View file

@ -7,10 +7,8 @@
createSecret = function() {
var secret;
secret = $('#formCreateSecret').find('textarea').val();
if ($('#extra').prop('checked')) {
securePassword = Math.random().toString(36).substring(2);
secret = GibberishAES.enc(secret, securePassword);
}
$.ajax('api/create', {
data: {
secret: secret

View file

@ -83,10 +83,6 @@
<label for="secret">Secret data:</label>
<textarea class="form-control" rows="5" id="secret"></textarea>
</div>
<div class="form-group">
<input type="checkbox" name="extra-secure" id="extra" checked>
<label for="extra">Make it extra secure (encrypt it before sending to the server)</label>
</div>
<input class="btn btn-success" type="submit" value="Create the secret!">
</form>
</div>