MHuiG

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

RailFenceCipher

# Python RailFenceCipher

RailFenceCipher.py

    #coding=utf-8
    def railFenceCipher():
        e = input()
        elen = len(e)
        field=[]
        for i in range(2,elen):
            if(elen%i==0):
                field.append(i)
        for f in field:
            b = int(elen / f)
            result = {x:'' for x in range(b)}
            for i in range(elen):
                a = i % b;
                result.update({a:result[a] + e[i]})
            d = ''
            for i in range(b):
                d = d + result[i]
            print (d.lower())

    if __name__ == '__main__':
        try:
            while True:
                railFenceCipher()
        except EOFError:
            exit()

Python QRcode

QRcode Python QRcode 加密enQRcode.pyimport qrcodeimport osimport sysimport time#pip install zxi...

留言区

Notes
Cryptography
<pjax>
</pjax>
<pjax></pjax>
<pjax> Are you Robot?</pjax>