通过脑残语言来保护你的STEEM钱包密码 - Use BrainFuck to Protect Your Steem Wallet Password(s)

in #cn7 years ago (edited)

Brainfuck is a programming language that can be used to secure your steemit wallet password or active keys. Here is a post that I wrote long time ago about implementing a Python BF interpreter. And here are two online tools that you need to encrypt your password text strings:

<ul> <li><a href="https://steakovercooked.com/Application/php.text2bf" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Convert Any Text to BF <li><a href="https://steakovercooked.com/Application/php.brainfuck" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Interpret the BF Program: <strong>Verify the BF output by interpreting it, store the BF string instead and then you can (optionally) delete the password (<strong>use it at your own risk) <p dir="auto">先来看看这一天书: <p dir="auto"><img src="https://images.hive.blog/768x0/https://steemitimages.com/DQmUTyTCnJ6aVmJAo8XFAAaqpaNtwBCZhFnj7L9bDdx38pB/image.png" srcset="https://images.hive.blog/768x0/https://steemitimages.com/DQmUTyTCnJ6aVmJAo8XFAAaqpaNtwBCZhFnj7L9bDdx38pB/image.png 1x, https://images.hive.blog/1536x0/https://steemitimages.com/DQmUTyTCnJ6aVmJAo8XFAAaqpaNtwBCZhFnj7L9bDdx38pB/image.png 2x" /> <p dir="auto">我告诉你,这是一段程序,执行后输出结果是 <code>steemit @justyy 你是不是有点蒙?是的,这是一种只有8种字符组成的编程语言,名字叫 BrainFuck 直译为(自己看吧) <p dir="auto"><img src="https://images.hive.blog/768x0/https://steemitimages.com/DQmUHoU2AVsjcjmw1XhgN12WB2AJ5MiAomjZhuQUqT8gGLR/image.png" srcset="https://images.hive.blog/768x0/https://steemitimages.com/DQmUHoU2AVsjcjmw1XhgN12WB2AJ5MiAomjZhuQUqT8gGLR/image.png 1x, https://images.hive.blog/1536x0/https://steemitimages.com/DQmUHoU2AVsjcjmw1XhgN12WB2AJ5MiAomjZhuQUqT8gGLR/image.png 2x" /> <p dir="auto">我们先来看看这8种字符是什么。假设有一个长度无限的数组,每个数组里存放的一个数字。 <ul> <li>大于号: 相当于 <code>++ptr 把数据指针往右移一格 <li>小于号: 相当于 <code>--ptr 把数据指针往左移一格 <li>加号: 把指向的当前格数据值加1 相当于 <code>++*ptr <li>减号: 把指向的当前格数据值减1相当于 <code>--*ptr <li>英文句号:把当前数据指针指向的单元格数据按 ASCII编码数组字符 相当于<code>putchar(*ptr) <li>英文逗号:从键盘输入一个字符,并把值存于当前指针处,相当于 <code>*ptr = getchar() <li>左方括号:如果指针处不为0,则执行代码直到 遇到右方括号,相当于 <code>while (*ptr) { <li>右方括号:如果指针处为0,则代码跳到右方括号后,相当于 <code>} <p dir="auto">麻雀虽小,五脏具全。上面的8个字符就可以支持输入输出、循环。判断语句(IF ELSE)也可以用循环来模拟。 <h1>Hello, World! <p dir="auto">来看看 这种脑残语言的 Hello, World! 怎么写: <p dir="auto"><img src="https://images.hive.blog/768x0/https://steemitimages.com/DQmco966osjTAhaxmPdsCt1wiyQnnt5k9VQheaXLKdLRgqK/image.png" srcset="https://images.hive.blog/768x0/https://steemitimages.com/DQmco966osjTAhaxmPdsCt1wiyQnnt5k9VQheaXLKdLRgqK/image.png 1x, https://images.hive.blog/1536x0/https://steemitimages.com/DQmco966osjTAhaxmPdsCt1wiyQnnt5k9VQheaXLKdLRgqK/image.png 2x" /> <p dir="auto">大写字母A-Z的ASCII码是65到90,小写字母a-z的ASCII码是97到122。那么通过不断的调整数组里数值的值(通过加号和减号),然后分别输出不同的字符。 <p dir="auto">字符串的输出方式组合就可以千变万化。源代码的长度就可以有长有短,所以萌生出了各种来求最短脑残语言的算法。 <p dir="auto">我之前写的两个小工具可以用来加密你的STEEM帐号密码: <ul> <li><a href="https://steakovercooked.com/ch/Application/php.brainfuck" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">执行任意一段脑残语言 <li><a href="https://steakovercooked.com/ch/Application/php.text2bf" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">把一段文字翻译成脑残源代码(可以用作加密用途,比如你小金库的密码,或者你<a href="https://justyy.com/archives/5137" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">STEEM帐号的密码哈) <p dir="auto"><span><img src="https://images.hive.blog/768x0/https://justyy.com/wp-content/uploads/2017/07/justyy-steemit.png" srcset="https://images.hive.blog/768x0/https://justyy.com/wp-content/uploads/2017/07/justyy-steemit.png 1x, https://images.hive.blog/1536x0/https://justyy.com/wp-content/uploads/2017/07/justyy-steemit.png 2x" /> <p dir="auto"><span>Originally published at <a href="https://steemit.com" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">https://steemit.com Thank you for reading my post, feel free to Follow, Upvote, Reply, ReSteem (repost) <a href="/@justyy">@justyy which motivates me to create more quality posts. <p dir="auto"><span>原创 <a href="https://Steemit.com" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">https://Steemit.com 首发。感谢阅读,如有可能,欢迎Follow, Upvote, Reply, ReSteem (repost) <a href="/@justyy">@justyy 激励我创作更多更好的内容。 <p dir="auto">// 稍后同步到我的<a href="https://justyy.com" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">中文博客和英文<a href="https://helloacm.com" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">计算机<a href="https://codingforspeed.com" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">博客。 <ul> <li><a href="https://justyy.com/archives/5151" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">通过脑残语言来保护你的STEEM钱包密码 <li><a href="https://helloacm.com/how-to-use-brainfuck-to-protect-your-steem-wallet-passwords/" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">How to Use BrainFuck to Protect Your Steem Wallet Password(s) ? <h1>近期热贴 Recent Popular Posts <ul> <li><a href="https://steemit.com/cn/@justyy/steemvoter" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">不会写程序也能自动点赞 - 通过 SteemVoter 添加点赞规则 <li><a href="https://steemit.com/cn/@justyy/8-hitchin" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">你好秋天,英国8月份的到Hitchin看薰衣草 (Hello Autumn! Hello Lavender) <li><a href="https://steemit.com/cn/@justyy/fen-drayton-1" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Fen Drayton村每年举行1万米比赛 <li><a href="https://steemit.com/cn/@justyy/365-the-day-365-at-steemit" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">碎碎念第365天 (The Day 365 at SteemIt) <li><a href="https://steemit.com/cn/@justyy/sp" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">出租 SP 的一些经验之谈 <li><a href="https://steemit.com/cn/@justyy/steem-vessel" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">很好用的 桌面版 Steem 钱包 - Vessel <li><a href="https://steemit.com/cn/@justyy/3stbmm" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">节流、开源、投资 <li><a href="https://steemit.com/cn/@someone/the-trip-to-prague--by-justyy" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">The Trip to Prague 捷克布拉格之旅 by @justyy <li><a href="https://steemit.com/cn/@justyy/sp-sp" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">出租些SP 当一回债主 - 怎么样把你多余的SP租出去收点利息? <li><a href="https://steemit.com/cn/@justyy/the-profiler-told-me-i-wrote-some-useless-code-an-example-of-defensive-programming" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">The profiler told me I wrote some useless code (An Example of Defensive Programming) 性能评估软件说我写了几行无用的代码 <li><a href="https://steemit.com/cn/@justyy/4z2jif" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">步子迈太大容易扯到蛋 <p dir="auto"><span><img src="https://images.hive.blog/0x0/https://justyy.com/gif/steemit.gif" />
Sort:  

看完都脑残了。

Why would you use brainfuck instead of an encryption?

trying something for fun.

But it doesn't give you any security

an extra layer won't hurt

哈哈,题目好好笑

确实brain f****了

最脑残的 Hello, World 了:P

其实还有更脑残的。。下回再分享。

有意思
不过看你文章描述,这只不过相当于文本变换
也就是说如果我拿到你加密后的文件再用在线工具啥的解一下,密码就泄漏啦

😄

有啥加密的手段吗,比如给密码设置个密码?

就是这个意思,防君子不防小人,一般情况下给密码设置个密码就可以了。

看來這語言讓我腦殘了!

虽然是简单的移位变换看的还是很头晕

我是基本上看不懂源代码。

I've never heard of this. If i did, I'll probably go WTF. And the google translate is 真TMD赞👍

Did you translate from English to Chinese or vice versa?

Mostly I think in English and then do the Chinese. Sometimes, I need help with translation.
Other times, I think in Chinese and translate to English if I want to. However, they are not exactly the same.

I will try the application. thanks

no problem... don't get too serious about this.

若果我有一天從你的電腦hack到了這樣的一堆符號,我知道該怎麼辦了,嘻嘻

多谢提醒 我会多加密几遍的。^^