Browse Source

Make secure - no more silly hashes

Pete Shadbolt 1 year ago
parent
commit
5cf8016799
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      app.py

+ 2
- 2
app.py View File

@@ -3,7 +3,7 @@ from flask_redis import FlaskRedis
3 3
 import json, abp, markdown
4 4
 from pprint import pprint
5 5
 import raussendorf
6
-import humanhash
6
+import uuid
7 7
 
8 8
 DAY = 60*60*24
9 9
 app = Flask(__name__)
@@ -11,7 +11,7 @@ redis = FlaskRedis(app)
11 11
 
12 12
 @app.route("/")
13 13
 def index():
14
-    secret, uuid = humanhash.uuid()
14
+    secret = str(uuid.uuid4())
15 15
     return redirect("/{}".format(secret))
16 16
 
17 17
 @app.route("/<uuid>")