Skip to content

Commit

Permalink
📘 Updated Description
Browse files Browse the repository at this point in the history
  • Loading branch information
bitcookies committed May 18, 2024
1 parent c4fe0a1 commit 04f1990
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ Example:

Now you can see the newly generated file.

```shell
```console
RAR registration data
Github
Single PC usage license
Expand All @@ -286,7 +286,7 @@ Save the generated information in **ANSI encoding** as `rarreg.key`.

Execute the following code in the terminal and configure two paramet

When using ANSI encoding, you can only use characters from the country or region where your operating system is located. ANSI encoding is supported from Powershell 7.4 onwards, and you will also need to [upgrade your Powershell](https://learn.microsoft.com/en-us/powershell/ scripting/install/installing-powershell-on-windows?view=powershell-7.4).
When using ANSI encoding, you can only use characters from the country or region where your operating system is located. ANSI encoding is supported from Powershell 7.4 onwards, and you will also need to [upgrade your Powershell](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.4).

Generate multi-language licenses in ANSI encoding.

Expand Down Expand Up @@ -330,7 +330,7 @@ winrar-keygen.exe "utf8:한국어" "license" | Out-File -Encoding utf8 rarreg.ke

Why is my `rarreg.key` invalid?

### 9.1 Incorrect encoding
### 9.1 Character encoding

`TEXT1` and `TEXT2` are required to fulfill [corresponding coding requirements](#4 - coding description).

Expand All @@ -340,7 +340,7 @@ winrar-keygen.exe <TEXT1> <TEXT2>

You can refer to: [Generation of "rarreg.key"](https://github.com/bitcookies/winrar-keygen/blob/master/README.HOW_DOES_IT_WORK.md#7-generation-of-rarregkey)

### 9.2 Key encoding
### 9.2 Text encoding

If you use the following command:

Expand All @@ -353,7 +353,11 @@ In the newer Windows 10, PowerShell will export in **UTF16-LE** format by defaul
Please use the following command:

```shell
winrar-keygen.exe "Github" "github.com" | Out-File -Encoding ASCII rarreg.key
winrar-keygen.exe "Github" "github.com" | Out-File -Encoding ascii rarreg.key

winrar-keygen.exe "Github" "github.com" | Out-File -Encoding ansi rarreg.key

winrar-keygen.exe "utf8:Github" "github.com" | Out-File -Encoding utf8 rarreg.key
```

## 10. Contributing
Expand Down
14 changes: 9 additions & 5 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ C:\Users\yourname\AppData\Roaming\WinRAR\rarreg.key
<details>
<summary>点击展开</summary>

使用 [Secrets](https://docs.github.com/en/actions/security-guides/encrypted-secrets) 可以帮助你隐藏 license 信息。
使用 [secrets](https://docs.github.com/en/actions/security-guides/encrypted-secrets) 可以帮助你隐藏 license 信息。

### 7.1 Fork

Expand Down Expand Up @@ -261,7 +261,7 @@ Example:

现在你可以看到新生成的文件:

```shell
```console
RAR registration data
Github
Single PC usage license
Expand Down Expand Up @@ -323,7 +323,7 @@ winrar-keygen.exe "utf8:한국어" "license" | Out-File -Encoding utf8 rarreg.ke

为什么我生成的 `rarreg.key` 是无效的?

### 9.1 编码不正确
### 9.1 字符编码不正确

参数 `TEXT1``TEXT2` 需要满足[对应的编码要求](#4-编码说明)

Expand All @@ -333,7 +333,7 @@ winrar-keygen.exe <TEXT1> <TEXT2>

具体可参考原理文档:[授权文件"rarreg.key"的生成](https://github.com/bitcookies/winrar-keygen/blob/master/README.HOW_DOES_IT_WORK.zh-CN.md#7-%E6%8E%88%E6%9D%83%E6%96%87%E4%BB%B6rarregkey%E7%9A%84%E7%94%9F%E6%88%90)

### 9.2 文件储存编码
### 9.2 文本储存编码不正确

如果你使用了如下命令:

Expand All @@ -346,7 +346,11 @@ winrar-keygen.exe "Github" "Single PC usage license" > rarreg.key
请指定输出编码格式,例如:

```shell
winrar-keygen.exe "Github" "github.com" | Out-File -Encoding ASCII rarreg.key
winrar-keygen.exe "Github" "github.com" | Out-File -Encoding ascii rarreg.key

winrar-keygen.exe "Github" "github.com" | Out-File -Encoding ansi rarreg.key

winrar-keygen.exe "utf8:Github" "github.com" | Out-File -Encoding utf8 rarreg.key
```

### 9.3 关于简体中文版
Expand Down

0 comments on commit 04f1990

Please sign in to comment.