Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Crypto 123 - MD5
#python 2.7.12 # -*- coding: utf-8 -*- # Version 2, December 2018 # # Copyright (C) 2018 Johnny chang <riversnowchang@gmail.com> # # Everyone is permitted to copy and distribute verbatim or modified # copies of this license document, and changing it is allowed as long # as the name is changed. # # LEARN WHAT YOU WANT TO PUBLIC LICENSE # TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION # # 0. You just LEARN WHAT YOU WANT TO. # 引入 hashlib 模組 import hashlib def GiveMe5(): flag = '$\xb3o\xbenSN\x15I66\xbe\x90\x17Ed' # 1. 建立 MD5 物件, 請將xxx改為md5 m = hashlib.xxx() # 2. 要計算 MD5 雜湊值的資料 data = "這是不能說的秘密喔......" # 3. 更新 MD5 雜湊值, 請將yyyyy改為update m.yyyyy(data) # 4. 取得 MD5 雜湊值, 請將zzzzzzzzz改為hexdigest h = m.zzzzzzzzz() print "Digest result:", h print "flag is:", ''.join( chr(ord(x)^ord(y)) for x,y in zip(flag, m.digest())) GiveMe5()
run
|
edit
|
history
|
help
0
on_off
check if any permutations of a word is a palindrome - python
building a basic calculator
First programm
wordscapes
pi1
PyClassMethod
PythonTuple
epicoaosdsoasd
Python examples - SIMPLE