通过脑残语言来保护你的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:

先来看看这一天书:

我告诉你,这是一段程序,执行后输出结果是 steemit @justyy 你是不是有点蒙?是的,这是一种只有8种字符组成的编程语言,名字叫 BrainFuck 直译为(自己看吧)

我们先来看看这8种字符是什么。假设有一个长度无限的数组,每个数组里存放的一个数字。

  • 大于号: 相当于 ++ptr 把数据指针往右移一格
  • 小于号: 相当于 --ptr 把数据指针往左移一格
  • 加号: 把指向的当前格数据值加1 相当于 ++*ptr
  • 减号: 把指向的当前格数据值减1相当于 --*ptr
  • 英文句号:把当前数据指针指向的单元格数据按 ASCII编码数组字符 相当于putchar(*ptr)
  • 英文逗号:从键盘输入一个字符,并把值存于当前指针处,相当于 *ptr = getchar()
  • 左方括号:如果指针处不为0,则执行代码直到 遇到右方括号,相当于 while (*ptr) {
  • 右方括号:如果指针处为0,则代码跳到右方括号后,相当于 }

麻雀虽小,五脏具全。上面的8个字符就可以支持输入输出、循环。判断语句(IF ELSE)也可以用循环来模拟。

Hello, World!

来看看 这种脑残语言的 Hello, World! 怎么写:

大写字母A-Z的ASCII码是65到90,小写字母a-z的ASCII码是97到122。那么通过不断的调整数组里数值的值(通过加号和减号),然后分别输出不同的字符。

字符串的输出方式组合就可以千变万化。源代码的长度就可以有长有短,所以萌生出了各种来求最短脑残语言的算法。

我之前写的两个小工具可以用来加密你的STEEM帐号密码:

Originally published at https://steemit.com Thank you for reading my post, feel free to Follow, Upvote, Reply, ReSteem (repost) @justyy which motivates me to create more quality posts.

原创 https://Steemit.com 首发。感谢阅读,如有可能,欢迎Follow, Upvote, Reply, ReSteem (repost) @justyy 激励我创作更多更好的内容。

// 稍后同步到我的中文博客和英文计算机博客

近期热贴 Recent Popular Posts

Sort:  

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

😄

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

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

看完都脑残了。

哈哈,题目好好笑

确实brain f****了

最脑残的 Hello, World 了:P

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

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

看來這語言讓我腦殘了!

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

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

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.

Coin Marketplace

STEEM 0.28
TRX 0.12
JST 0.033
BTC 70118.25
ETH 3744.50
USDT 1.00
SBD 3.84