Skip to content

Commit cbe901d

Browse files
typos
1 parent 817aae7 commit cbe901d

File tree

2 files changed

+20
-18
lines changed

2 files changed

+20
-18
lines changed

README-CN.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,33 @@
44

55
---
66

7-
`crypto-js-wasm` 是基于 JavaScript 和 [WebAssembly](https://webassembly.org/) 的哈西与加密算法库,其灵感来自于[crypto-js](https://github.com/brix/crypto-js)
7+
`crypto-js-wasm` 是基于 JavaScript 和 [WebAssembly](https://webassembly.org/) 的哈希与加密算法库,其灵感来自于[crypto-js](https://github.com/brix/crypto-js)
88

9-
- **安全**: 得益于 WebAssembly ,crypto-js-wasm的计算过程是**不可见、不可中断**的。
10-
- **高效**: 相比于crypto-js,计算效率最高提升了16倍(见 [Benchmark](https://originjs.org/WASM-benchmark/#/))。
11-
- **浏览器 & Nodejs**: 同时支持 `浏览器``nodejs`.
12-
- **全能**: 支持**15+** 以上的哈西和加密算法,包括常用的 MD5、 SHA-x、 AES、RC4等。
13-
- **ESM**: 基于ES模块语法编写,支持一部运行
9+
- **安全**: 得益于 WebAssembly ,crypto-js-wasm的计算过程是**不可见、不可中断**
10+
- **高效**: 相比于crypto-js,计算效率最高提升了16倍(见 [Benchmark](https://originjs.org/WASM-benchmark/#/))
11+
- **兼容crypto-js**: 与crypto-js的API完全相同
12+
- **浏览器 & Nodejs**: 同时支持 `浏览器``nodejs`
13+
- **全能**: 支持**15+** 以上的哈希和加密算法,包括常用的 MD5、 SHA-x、 AES、RC4等
14+
- **ESM**: 基于ES模块语法编写,支持异步运行
1415

1516

1617

1718
## 安装
1819

1920
```bash
20-
npm install originjs@crypto-js-wasm
21+
npm install @originjs/crypto-js-wasm
2122
```
2223

2324
2425

2526
```bash
26-
pnpm install originjs@crypto-js-wasm
27+
pnpm install @originjs/crypto-js-wasm
2728
```
2829

2930
3031

3132
```bash
32-
yarn add originjs@crypto-js-wasm
33+
yarn add @originjs/crypto-js-wasm
3334
```
3435

3536

@@ -94,7 +95,7 @@ CryptoJSW.SHA256.loadWasm().then(() => {
9495

9596
## Benchmark
9697

97-
benchmark 结果运行自一台台式机 (i5-4590, 16 GB RAM, Windows 10 Version 21H2 (OSBuild 19044, 1466))。
98+
以下 benchmark 结果运行自一台台式机 (i5-4590, 16 GB RAM, Windows 10 Version 21H2 (OSBuild 19044, 1466))。
9899

99100

100101

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,31 @@
66

77
`crypto-js-wasm` is a javascript library of crypto standards. Inspired by [crypto-js](https://github.com/brix/crypto-js), but now powered by [WebAssembly](https://webassembly.org/).
88

9-
- **Safe**: The process of encryption is fully **enclosed** and **invisible** thanks to WebAssembly.
10-
- **Efficient**: Up to 16x **faster** than crypto-js (see [Benchmark](https://originjs.org/WASM-benchmark/#/)).
11-
- **Browser & Nodejs**: Support both `browser` and `nodejs`.
12-
- **Versatile**: **15+** crypto standards supported, including MD5, SHA-x, AES, RC4, etc.
13-
- **ESM**: Crypto standards can be imported as **ES modules**.
9+
- **Safe**: The process of encryption is fully **enclosed** and **invisible** thanks to WebAssembly
10+
- **Efficient**: Up to 16x **faster** than crypto-js (see [Benchmark](https://originjs.org/WASM-benchmark/#/))
11+
- **Compatible**: Has the same API with crypto-js
12+
- **Browser & Nodejs**: Support both `browser` and `nodejs`
13+
- **Versatile**: **15+** crypto standards supported, including MD5, SHA-x, AES, RC4, etc
14+
- **ESM**: Crypto standards can be imported as **ES modules**
1415

1516

1617

1718
## Getting started
1819

1920
```bash
20-
npm install originjs@crypto-js-wasm
21+
npm install @originjs/crypto-js-wasm
2122
```
2223

2324
or
2425

2526
```bash
26-
pnpm install originjs@crypto-js-wasm
27+
pnpm install @originjs/crypto-js-wasm
2728
```
2829

2930
or
3031

3132
```bash
32-
yarn add originjs@crypto-js-wasm
33+
yarn add @originjs/crypto-js-wasm
3334
```
3435

3536

0 commit comments

Comments
 (0)