码迷,mamicode.com
首页 > 编程语言 > 详细

Tuts 4 You注册解密(python)

时间:2018-12-05 02:01:10      阅读:549      评论:0      收藏:0      [点我收藏+]

标签:dhs   进制   for   forum   article   div   asc   The   https   

今天想看个博客,发现一个网站  https://forum.tuts4you.com/register/,注册的时候有个加密码类似于这个

105 144 167 141 162 144 040 123 141 154 153 040 144 145 166 145 154 157 160 145 144 040 141 040 166 141 143 143 151 156 145 040 141 147 141 151 156 163 164 040 167 150 141 164 077

还有这个

127 150 157 040 144 145 166 145 154 157 160 145 144 040 164 150 145 040 107 141 151 141 040 124 150 145 157 162 171 077 

 

搜了下是8进制的ascii码,用python写了个转换代码,再看了下别的语言写的,还是python简短

人生苦短,多用python!

mima = ‘127 150 157 040 144 145 166 145 154 157 160 145 144 040 164 150 145 040 107 141 151 141 040 124 150 145 157 162 171 077‘

m_ = mima.split(‘ ‘)
result = ‘‘
for m in m_:
    result += (chr(int(m, 8)))
print(result)

‘Who developed the Gaia Theory?‘

附加一个貌似有这种问题答案的帖子不是很全凑合看:https://blog.csdn.net/davidhsing/article/details/8300982

 

Tuts 4 You注册解密(python)

标签:dhs   进制   for   forum   article   div   asc   The   https   

原文地址:https://www.cnblogs.com/Robertzewen/p/10068394.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!