zoukankan      html  css  js  c++  java
  • md5加密解密

    # -*- coding: utf-8 -*-
    """
    Spyder Editor
    
    This is a temporary script file.
    """
    
    import hashlib,bs4,requests
    from selenium import webdriver
    from selenium.webdriver.common.keys import Keys
    
    md5="21232f297a57a5a743894a0e4a801fc3"
      
    def MD5_encryption(content):
        m=hashlib.md5()
        byte_content=content.encode('utf-8')
        m.update(byte_content)
        md5_encrypted_content=m.hexdigest() #返回摘要,作为十六进制数据字符串值
        return md5_encrypted_content
        
        
    browser = webdriver.Firefox()
    url="http://md5decryption.com/" 
    #ur1="http://baidu.com/" 
    browser.get(url)
    
    elem=browser.find_element_by_name('hash')
    elem.send_keys("21232f297a57a5a743894a0e4a801fc3")
    #相当于提交点击  
    elem.send_keys(Keys.RETURN)
    
    decryption_elem=browser.find_element_by_class_name("main")
    content=decryption_elem.text
    list1=content.split("
    
    
    
    ")
    decryption=list1[2]
    print (decryption)
    

      

    破解成功

    测试文字,用于处理字符串 

     'Encrypt MD5 hash, Decrypt MD5 hash MD5Decryption.com allows you to enter a MD5 hash and we will look into our database and try to decrypt MD5. Basically it is a MD5 decrypter. What is an MD5 hash, or MD5 Checksum? MD5 is a 128-bit message digest function. It is used commonly in user authentication and MD5 checksum for data integrity. How many MD5 hashes are in our database? We have encrypted more than 105,300,000 words, phrases, acronyms, etc since 2006. MD5Decryption.com is proudly hosted by Hostgator Decrypt It! Please input the MD5 hash that you would like to be decrypted: Md5 Hash: 21232f297a57a5a743894a0e4a801fc3 Decrypted Text: admin'

    MD5加密解密网址

    http://md5decryption.com/  (免费)

    http://www.cmd5.com/    (中文的,付费)

    http://www.cmd5.com/

    中文的网址,比较快,简单的可以搜出结果


    Python3版本的md5加密值与http://md5decryption.com/  网站加密值是一样的。
     http://md5decryption.com/ 提供常用md5破解值
    图片

    图片

    # -*- coding: utf-8 -*-
    """
    Created on Sat Apr 23 21:27:37 2016
    md5加密函数
    @author: daxiong  Python 3.0
    """
     
    import hashlib
    #content="2015063000000001godblessme143566028812345678"
     
    def MD5_encryption(content):
        m=hashlib.md5()
        byte_content=content.encode('utf-8')
        m.update(byte_content)
        md5_encrypted_content=m.hexdigest() #返回摘要,作为十六进制数据字符串值
        return md5_encrypted_content
        
    

      

  • 相关阅读:
    rasa learning to rank
    为什么选择rasa
    rasa
    tf.tile
    tf.scatter_nd
    nlp中的数据增强之 google-uda
    递归-分治-动态规划-贪心
    递归算法的美妙
    数据不平衡问题
    WD(西部数据)硬盘,“必须从您要解锁的硬盘对应的WD Drive Unlock CD 运行WD Drive Unlock应用程序”错误解决办法
  • 原文地址:https://www.cnblogs.com/webRobot/p/5429640.html
Copyright © 2011-2022 走看看