日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

随机加密_随机艺术和加密圣诞树

發(fā)布時(shí)間:2023/11/29 编程问答 27 豆豆
生活随笔 收集整理的這篇文章主要介紹了 随机加密_随机艺术和加密圣诞树 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

隨機(jī)加密

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.

當(dāng)我第一次學(xué)習(xí)如何編碼時(shí),我的第一個(gè)任務(wù)是設(shè)置SSH密鑰,以便可以使用加密功能安全地連接到朋友的Linux服務(wù)器。

I ran the command:

我運(yùn)行了命令:

ssh-keygen -t rsa

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

然后,我的計(jì)算機(jī)創(chuàng)建了我的SSH密鑰并吐出了這個(gè)“ randomart”:

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

“這是什么?” 我問了一下,斜眼看著隨機(jī)藝術(shù)品,試圖使秩序擺脫混亂。

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

我的朋友俯身在我肩膀上說:“哦,那是一種隨機(jī)藝術(shù)。 看來您有一棵可愛的加密圣誕樹。”

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

我有點(diǎn)斜眼,轉(zhuǎn)過頭。 果然,它的確看起來像圣誕樹!

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.

事實(shí)證明,這些randomart非常有用。 盡管看起來很混亂,但與長串的十六進(jìn)制代碼相比,它們更容易使人區(qū)分 。

Compare these two randomart:

比較這兩個(gè)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:

現(xiàn)在嘗試比較這兩個(gè)十六進(jìn)制代碼字符串:

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。

奇怪的假期傳統(tǒng) (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.

快進(jìn)上周。 邁克爾·D·約翰遜 ( Michael D. Johnson )試圖說服我,我們的開源社區(qū)應(yīng)該為假期設(shè)計(jì)一件丑陋的毛衣。

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.

除了姨媽為我編織的一件毛衣,我再也沒有丑陋的毛衣了。 直到幾年后,當(dāng)我翻閱祖母的剪貼簿并遇到自己穿著它的恐怖照片時(shí),我什至沒有意識到這是一件丑陋的毛衣。

Still, Michael convinced me that ugly sweaters were indeed a thing.

邁克爾仍然使我相信丑陋的毛衣確實(shí)是一件大事 。

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

“人們?nèi)映舐拿屡蓪?#xff01;” 他告訴我。 “你穿上了你發(fā)現(xiàn)的最丑陋的圣誕毛衣,然后一起去喝蛋酒 !”

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搜索確認(rèn)他是正確的。 這些年來,我一直生活在泡沫之中,錯(cuò)過了丑陋的毛衣派對的輝煌。

設(shè)計(jì)丑陋的毛衣 (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?

所以我集思廣益了一段時(shí)間。 我能想到的與編程有關(guān)的最丑陋的事情是什么? 縮小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.

那時(shí),我想起了我的第一個(gè)SSH密鑰randomart,以及我朋友關(guān)于它像圣誕樹的評論。

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.

我和德克薩斯州奧斯汀的平面設(shè)計(jì)師韋斯利·西蘭 ( Wesley Searan)跳了起來 。 韋斯利和我來回提出了幾天的設(shè)計(jì)思想。

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

我做了敏捷的事情,并在推特上發(fā)布了我們設(shè)計(jì)的草稿,以獲取社區(qū)的反饋。

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.

與往常一樣,我們使這些資產(chǎn)具有創(chuàng)意-常見許可,并將其放入Free Code Camp的資產(chǎn)回購庫中 ,以供所有人使用。

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.

因此,現(xiàn)在您可以舉辦丑陋的圣誕毛衣派對,或者只穿一件參加家庭聚會。 您將成為您真棒的SSH key randomart丑陋毛衣中最可愛的人(這是一件好事!)。

These will be available in our community’s shop for the next few days, so pick one up.

這些將在接下來的幾天內(nèi)在我們社區(qū)的商店中提供,因此請選擇一個(gè)。

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.

感謝您抽出寶貴時(shí)間來閱讀我的文章。 如果喜歡,請單擊“?”。 下面,以便其他人可以在Medium上看到。

翻譯自: https://www.freecodecamp.org/news/the-geekiest-ugly-sweater-ever-34a2e591483f/

隨機(jī)加密

總結(jié)

以上是生活随笔為你收集整理的随机加密_随机艺术和加密圣诞树的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。