-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathserver.py
More file actions
29 lines (22 loc) · 951 Bytes
/
Copy pathserver.py
File metadata and controls
29 lines (22 loc) · 951 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# -*- coding: utf8 -*-
from flask import Flask
import dicewords
app = Flask(__name__)
@app.route("/")
def hello():
return """<html><body>
<h1>DiceWords</h1>
<p>You should pick between 5 and 10 words depending
on the confidentiality needs. Best guess is a 7-word phrase is too strong
for even the most sophisticated (ie NSA) to crack.</p>
<h1>10-Word Secure Phrase</h1>
<div><code><pre>%s</pre></code></div>
<h1>References</h1>
<ul>
<li><a href="https://firstlook.org/theintercept/2015/03/26/passphrases-can-memorize-attackers-cant-guess/">PASSPHRASES THAT YOU CAN MEMORIZE — BUT THAT EVEN THE NSA CAN’T GUESS</a></li>
<li><a href="http://world.std.com/~reinhold/diceware.html">Diceword Homepage</a></li>
</ul>
</body></html>""" % ' '.join(dicewords.mkphrase())
if __name__ == "__main__":
app.debug = False
app.run()