chore(i18n,curriculum): processed translations (#44193)
This commit is contained in:
		| @@ -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'); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user