-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #679 from uccser/rsa-no-padding-refactor
Refactor rsa-no-padding interactive.
- Loading branch information
Showing
4 changed files
with
50 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 0 additions & 46 deletions
46
csfieldguide/static/interactives/rsa-no-padding/index.html
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{% extends interactive_mode_template %} | ||
|
||
{% load i18n %} | ||
{% load static %} | ||
|
||
{% block html %} | ||
<div class="container"> | ||
<div class="row" id="interactive-rsa-no-padding" data-iframe-height> | ||
<div class="col-12"> | ||
<h3>{% trans 'RSA <span id="interactive-rsa-no-padding-mode">Encrypter</span>' %}</h3> | ||
|
||
<h5>{% trans 'Key' %}</h5> | ||
<textarea id="interactive-rsa-no-padding-key" class="form-control mb-3" rows="5"></textarea> | ||
|
||
<h5>{% trans '<span id="interactive-rsa-no-padding-input-type">Plain</span> Text' %}</h5> | ||
<textarea id="interactive-rsa-no-padding-input-text" class="form-control mb-1" rows="5"></textarea> | ||
|
||
<button id="interactive-rsa-no-padding-process" class="btn btn-primary mb-3">{% trans 'Encrypt' %}</button> | ||
|
||
<h5><span id="interactive-rsa-no-padding-output-type">{% trans 'Cipher</span> Text' %}</h5> | ||
<textarea id="interactive-rsa-no-padding-output-text" class="form-control mb-3" rows="5"></textarea> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock html %} | ||
|
||
{% block css %} | ||
<link rel="stylesheet" href="{% static 'interactives/rsa-no-padding/css/rsa-no-padding.css' %}"> | ||
{% endblock css %} | ||
|
||
{% block js %} | ||
<script type="text/javascript"> | ||
var rsa_no_padding_il8n = { | ||
"error": "{% trans 'Error in encryption!' %}", | ||
"decrypter": "{% trans 'Decrypter' %}", | ||
"decrypt": "{% trans 'Decrypt' %}", | ||
"cipher": "{% trans 'Cipher' %}", | ||
"plain": "{% trans 'Plain' %}" | ||
} | ||
</script> | ||
<script type="text/javascript" src="{% static 'interactives/rsa-no-padding/js/rsa-jsencrypt-no-padding.js' %}"></script> | ||
<script type="text/javascript" src="{% static 'interactives/rsa-no-padding/js/third-party/jsencrypt-no-padding.js' %}"></script> | ||
{% endblock js %} |