# -*- coding: utf-8 -*-
"""
This file is covered by the LICENSING file in the root of this project.
"""

import hashlib
import sys

sys.path.append("..")

from client import app


def encode(plaintext):
    m = hashlib.md5()
    origin = plaintext + app.config['SECRET_KEY']
    m.update(origin.encode('utf8'))
    return m.hexdigest()


if __name__ == "__main__":
    print(encode("admin"))

@@ -380,13 +380,12 @@
 de(%22
-admin
+flag
 %22))%0A

update md5 to py3