chore(i18n,curriculum): processed translations (#44193)

This commit is contained in:
camperbot
2021-11-17 06:20:53 -08:00
committed by GitHub
parent 8812e6b3ac
commit 9f9fb63caa
47 changed files with 417 additions and 413 deletions

View File

@ -8,59 +8,59 @@ dashedName: sha-1
# --description--
**SHA-1** or **SHA1** is a one-way hash function; it computes a 160-bit message digest.
**SHA-1** 或稱 **SHA1** 是一種單向散列函數,它產生數據的 160 位摘要信息。
SHA-1 often appears in security protocols; for example, many HTTPS websites use RSA with SHA-1 to secure their connections.
SHA-1 經常出現在安全協議中;例如,許多 HTTPS 網站使用 SHA-1 來保護他們的連接。
BitTorrent uses SHA-1 to verify downloads.
BitTorrent 使用 SHA-1 來驗證下載內容。
Git and Mercurial use SHA-1 digests to identify commits.
Git Mercurial 使用 SHA-1 摘要來覈驗提交內容。
A US government standard, [FIPS 180-1](https://rosettacode.org/wiki/SHA-1/FIPS-180-1), defines SHA-1.
美國政府標準 [FIPS 180-1](https://rosettacode.org/wiki/SHA-1/FIPS-180-1) 了定義 SHA-1
# --instructions--
Write a function that returns the SHA-1 message digest for a given string.
寫一個函數返回給定字符串的 SHA-1 消息摘要。
# --hints--
`SHA1` should be a function.
`SHA1` 應該是一個函數。
```js
assert(typeof SHA1 === 'function');
```
`SHA1("abc")` should return a string.
`SHA1("abc")` 應該返回一個字符串。
```js
assert(typeof SHA1('abc') === 'string');
```
`SHA1("abc")` should return `"a9993e364706816aba3e25717850c26c9cd0d89d"`.
`SHA1("abc")` 應該返回 `"a9993e364706816aba3e25717850c26c9cd0d89d"`
```js
assert.equal(SHA1('abc'), 'a9993e364706816aba3e25717850c26c9cd0d89d');
```
`SHA1("Rosetta Code")` should return `"48c98f7e5a6e736d790ab740dfc3f51a61abe2b5"`.
`SHA1("Rosetta Code")` 應該返回 `"48c98f7e5a6e736d790ab740dfc3f51a61abe2b5"`
```js
assert.equal(SHA1('Rosetta Code'), '48c98f7e5a6e736d790ab740dfc3f51a61abe2b5');
```
`SHA1("Hello world")` should return `"7b502c3a1f48c8609ae212cdfb639dee39673f5e"`.
`SHA1("Hello world")` 應該返回 `"7b502c3a1f48c8609ae212cdfb639dee39673f5e"`
```js
assert.equal(SHA1('Hello world'), '7b502c3a1f48c8609ae212cdfb639dee39673f5e');
```
`SHA1("Programming")` should return `"d1a946bf8b2f2a7292c250063ee28989d742cd4b"`.
`SHA1("Programming")` 應該返回 `"d1a946bf8b2f2a7292c250063ee28989d742cd4b"`
```js
assert.equal(SHA1('Programming'), 'd1a946bf8b2f2a7292c250063ee28989d742cd4b');
```
`SHA1("is Awesome")` should return `"6537205da59c72b57ed3881843c2d24103d683a3"`.
`SHA1("is Awesome")` 應該返回 `"6537205da59c72b57ed3881843c2d24103d683a3"`
```js
assert.equal(SHA1('is Awesome'), '6537205da59c72b57ed3881843c2d24103d683a3');