博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
随机加密_随机艺术和加密圣诞树
阅读量:2518 次
发布时间:2019-05-11

本文共 4547 字,大约阅读时间需要 15 分钟。

随机加密

When I first learned how to code, one of my first tasks was setting up an SSH key so I could use encryption to securely connect to my friend’s Linux server.

当我第一次学习如何编码时,我的第一个任务是设置SSH密钥,以便可以使用加密功能安全地连接到朋友的Linux服务器。

I ran the command:

我运行了命令:

ssh-keygen -t rsa

Then my computer created my SSH keys and spat out this “randomart”:

然后,我的计算机创建了我的SSH密钥并吐出了这个“ randomart”:

“What is this?” I asked, squinting at the randomart and trying to bring order out of the chaos.

“这是什么?” 我问了一下,斜眼看着随机艺术品,试图使秩序摆脱混乱。

My friend leaned over my shoulder and said, “Oh, that’s a randomart. It looks like you got a cute little cryptographic Christmas tree.”

我的朋友俯身在我肩膀上说:“哦,那是一种随机艺术。 看来您有一棵可爱的加密圣诞树。”

I kind of squinted and turned my head. Sure enough, it did look like kind of like a Christmas tree!

我有点斜眼,转过头。 果然,它的确看起来像圣诞树!

It turns out these randomart are quite useful. As jumbled as they may appear, they’re a than long strings of hex code.

事实证明,这些randomart非常有用。 尽管看起来很混乱,但与长串的十六进制代码相比,它们 。

Compare these two randomart:

比较这两个randomart:

+--[ RSA 2048]----+|        .        ||       + .       ||      . B .      ||     o * +       ||    X * S        ||   + O o . .     ||    .   E . o    ||       . . o     ||        . .      |+-----------------+
Versus:
+--[ RSA 2048]----+|       .o o..    ||       o +Eo     ||        + .      ||         . + o   ||        S o = * o||           . o @.||            . = o||           . o   ||            o.   |+-----------------+

Now try comparing these two strings of hex code:

现在尝试比较这两个十六进制代码字符串:

2048 1b:b8:c2:f4:7b:b5:44:be:fa:64:d6:eb:e6:2f:b8:fa 192.168.1.84 (RSA)
Versus:
2048 1b:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48 192.168.1.84 (RSA)

See what I mean? Therefore randomart. QED.

明白了吗? 因此是randomart。 QED。

奇怪的假期传统 (A strange holiday tradition)

Fast forward to last week. was trying to convince me that our open source community should design an ugly sweater for the holidays.

快进上周。 ( )试图说服我,我们的开源社区应该为假期设计一件丑陋的毛衣。

I’d never owned an ugly sweater except for one my aunt had knitted for me. And I didn’t even realize that it was an ugly sweater until years later, when I was flipping through my grandma’s scrapbook and encountered horrifying picture of myself wearing it.

除了姨妈为我编织的一件毛衣,我再也没有丑陋的毛衣了。 直到几年后,当我翻阅祖母的剪贴簿并遇到自己穿着它的恐怖照片时,我什至没有意识到这是一件丑陋的毛衣。

Still, Michael convinced me that ugly sweaters .

迈克尔仍然使我相信丑陋的毛衣 。

“People throw ugly sweater parties!” he told me. “You put on the ugliest Christmas sweater you can find, then go drink together!”

“人们扔丑陋的毛衣派对!” 他告诉我。 “你穿上了你发现的最丑陋的圣诞毛衣,然后一起去喝 !”

A quick Google search confirmed he was right. I had been living in a bubble all these years, and had missed out on the splendor of ugly sweater parties.

快速的Google搜索确认他是正确的。 这些年来,我一直生活在泡沫之中,错过了丑陋的毛衣派对的辉煌。

设计丑陋的毛衣 (Designing the ugly sweater)

So I brainstormed for a while. What was the ugliest thing I could imagine related to programming? Minified CSS? A C++ stack trace?

所以我集思广益了一段时间。 我能想到的与编程有关的最丑陋的事情是什么? 缩小CSS? C ++堆栈跟踪?

That’s when I remembered my first SSH key randomart, and my friend’s comment about how it looked like a Christmas tree.

那时,我想起了我的第一个SSH密钥randomart,以及我朋友关于它像圣诞树的评论。

I hopped on the phone with , a graphic designer in Austin, Texas. Wesley and I threw design ideas back and forth for a few days.

我和德克萨斯州奥斯汀的平面设计师 ( 。 韦斯利和我来回提出了几天的设计思想。

I did the agile thing and a rough draft of our design to get feedback from our community.

我做了敏捷的事情,并在了我们设计的草稿,以获取社区的反馈。

People wanted us to remove the XMAS 2016 (which I’d used in place of the RSA 2048) so they could wear the sweater subsequent holidays. And they wanted T-shirts and hoodies as well. So we made those available.

人们希望我们删除XMAS 2016(我用它代替了RSA 2048),以便他们可以在随后的假期穿这件毛衣。 他们也想要T恤和帽衫。 因此,我们使这些可用。

As always, we made these assets creative-commons licensed, and put them up on Free Code Camp’s for everyone to play with.

与往常一样,我们使这些资产具有创意-常见许可,并将其放入Free Code Camp的 ,以供所有人使用。

Here’s what looks like, complete with cheesy background:

这是样子,带有俗气的背景:

So now you can throw your ugly Christmas sweater party, or just wear one to family gatherings. You’ll be the geekiest-looking person there (which is a good thing!) in your awesome SSH key randomart ugly sweater.

因此,现在您可以举办丑陋的圣诞毛衣派对,或者只穿一件参加家庭聚会。 您将成为您真棒的SSH key randomart丑陋毛衣中最可爱的人(这是一件好事!)。

These will be available in for the next few days, so pick one up.

这些将在接下来的几天内在提供,因此请选择一个。

Happy encrypting!

加密愉快!

Thanks for taking time out of your busy day to read my article. If you liked it, click the ? below so other people will see this here on Medium.

感谢您抽出宝贵时间来阅读我的文章。 如果喜欢,请单击“?”。 下面,以便其他人可以在Medium上看到。

翻译自:

随机加密

转载地址:http://uarwd.baihongyu.com/

你可能感兴趣的文章
Laravel框架学习笔记之任务调度(定时任务)
查看>>
Laravel 的生命周期
查看>>
Nginx
查看>>
Navicat远程连接云主机数据库
查看>>
Nginx配置文件nginx.conf中文详解(总结)
查看>>
jxl写入excel实现数据导出功能
查看>>
linux文件目录类命令|--cp指令
查看>>
.net MVC 404错误解决方法
查看>>
linux系统目录结构
查看>>
Entity Framework 4.3.1 级联删除
查看>>
学习进度
查看>>
github.com加速节点
查看>>
使用Postmark测试后端存储性能
查看>>
NSTextView 文字链接的定制化
查看>>
第五天站立会议内容
查看>>
ATMEGA16 IOport相关汇总
查看>>
JAVA基础-多线程
查看>>
面试题5:字符串替换空格
查看>>
[Codevs] 线段树练习5
查看>>
Amazon
查看>>