-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cf3ac59
commit b1a1b4d
Showing
5 changed files
with
46 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,3 +48,6 @@ def expprime(cipher, publickey): | |
print(plaintext.decode()) | ||
|
||
|
||
|
||
|
||
|
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
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 |
---|---|---|
@@ -1,25 +1,35 @@ | ||
{% extends "base.html" %} {% block title %}Home{% endblock %} {% block content | ||
%} | ||
<h1 align="center">Note Groups</h1> | ||
<ul class="list-group list-group-flush" id="notes"> | ||
{% for note in notes %} | ||
<li class="list-group-item"> | ||
{{ note.data }} | ||
{% if note.owner_id == user.id %} | ||
<button type="button" class="close" onClick="deleteNote({{ note.id }})"> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
{% endif %} | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
<form method="POST"> | ||
<textarea name="note" id="note" class="form-control"></textarea> | ||
<br /> | ||
<input type="text" name="public_key" id="public_key" class="form-control" placeholder="Enter Public Key"> | ||
<br /> | ||
<div align="center"> | ||
<button type="submit" class="btn btn-primary">Add Note</button> | ||
</div> | ||
</form> | ||
{% endblock %} | ||
%} | ||
<h1 align="center">Note Groups</h1> | ||
<ul class="list-group list-group-flush" id="notes"> | ||
{% for note in notes %} | ||
<li class="list-group-item"> | ||
{% if note.owner_id == user.id %} | ||
{{ note.data }} | ||
<button type="button" class="close" onClick="deleteNote({{ note.id }})"> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
{% else %} | ||
{% if note.destination_id == user.id and note.owner_id != note.destionation_id%} | ||
{{ note.data}} | ||
{% else %} | ||
{% if note.encrypted_data%} | ||
{{ note.encrypted_data }} | ||
{% else %} | ||
{{ note.data }} | ||
{% endif %} | ||
{% endif %} | ||
{% endif %} | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
<form method="POST"> | ||
<textarea name="note" id="note" class="form-control"></textarea> | ||
<br /> | ||
<input type="text" name="public_key" id="public_key" class="form-control" placeholder="Enter Public Key"> | ||
<br /> | ||
<div align="center"> | ||
<button type="submit" class="btn btn-primary">Add Note</button> | ||
</div> | ||
</form> | ||
{% endblock %} |
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