Hack Fence Password python script

Source: Internet
Author: User
Tags python script

Today I met a fence code to crack and wrote a generic script.

1 #!/usr/bin/env python2 #-*-CODING:GBK-*-3 #-*-coding:utf_8-*-4 #Author: Blue Line5 #Http://www.cnblogs.com/duanv6E = Raw_input ('Please enter the string to decrypt \ n')7Elen =Len (e)8Field=[]9  forIinchRange (2, Elen):Ten             if(elen%i==0): One field.append (i) A  -  forFinchfield: -b = Elen/F theresult = {x:"'  forXinchrange (b)} -      forIinchRange (Elen): -A = i%b; -Result.update ({A:result[a] +E[i]}) +D ="' -      forIinchRange (b): +D = d +Result[i] A     Print 'divided into \ t'+str (f) +'\ t'+'Bar, the decrypted result is:'+d

Hack Fence Password python script

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.