MHuiG

「看庭前花开花落,望天上云卷云舒」

MD5

# Python MD5

MD5.py

    import hashlib
    class MD5:
        def str():
            str=input()
            m = hashlib.md5()
            m.update(str.encode('utf-8'))
            print (m.hexdigest())

        def filebin():
            src=input()
            f = open(src, 'rb')
            f_md5 = hashlib.md5()
            f_md5.update(f.read())
            print (f_md5.hexdigest())

        def file():
            src=input()
            f = open(src, 'r')
            f_md5 = hashlib.md5()
            f_md5.update(f.read().encode('utf-8'))
            print (f_md5.hexdigest())

    if __name__=='__main__':
        try:
            while True:
                MD5.filebin()
        except EOFError:
                exit()

Python Caesar

Caesar Python Caesar Caesar.py#-*-coding:utf-8-*-import osdef encryption(): str_raw = in...

Python Morse

Morse Python Morse Morse.py# -*- coding:utf-8 -*-def Morse(): try: s = input() ...

留言区

Notes
Cryptography
Are you Robot?