From 642ef8ed7e86acb128239eb9efe22b524b2bb1d6 Mon Sep 17 00:00:00 2001 From: Morgan Date: Tue, 23 May 2023 19:50:21 +0900 Subject: [PATCH] Added SHA-256 to password --- encrypt-to-html.py | 38 ++++++++++++++++++++++---------------- 1 file changed, 22 insertions(+), 16 deletions(-) mode change 100644 => 100755 encrypt-to-html.py diff --git a/encrypt-to-html.py b/encrypt-to-html.py old mode 100644 new mode 100755 index 93e12b3..77e7bc5 --- a/encrypt-to-html.py +++ b/encrypt-to-html.py @@ -2,6 +2,7 @@ import base64 import sys +import hashlib import os from Crypto.Cipher import AES from Crypto.Util.Padding import pad @@ -97,25 +98,24 @@ def render_template(template_file, output_file, context):
Decrypt {{ filename }} - +
-