隨機加密
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 lot easier for humans to differentiate between 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. Michael D. Johnson was trying to convince me that our open source community should design an ugly sweater for the holidays.
快進上周。 邁克爾·D·約翰遜 ( Michael D. Johnson )試圖說服我,我們的開源社區應該為假期設計一件丑陋的毛衣。
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 were indeed a thing.
邁克爾仍然使我相信丑陋的毛衣確實是一件大事 。
“People throw ugly sweater parties!” he told me. “You put on the ugliest Christmas sweater you can find, then go drink eggnog 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 Wesley Searan, a graphic designer in Austin, Texas. Wesley and I threw design ideas back and forth for a few days.
我和德克薩斯州奧斯汀的平面設計師韋斯利·西蘭 ( Wesley Searan)跳了起來 。 韋斯利和我來回提出了幾天的設計思想。
I did the agile thing and tweeted out 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 assets repo for everyone to play with.
與往常一樣,我們使這些資產具有創意-常見許可,并將其放入Free Code Camp的資產回購庫中 ,以供所有人使用。
Here’s what the finished sweater 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 our community’s shop 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上看到。
翻譯自: https://www.freecodecamp.org/news/the-geekiest-ugly-sweater-ever-34a2e591483f/
隨機加密