diff --git a/README.HOW_DOES_IT_WORK.zh-CN.md b/README.HOW_DOES_IT_WORK.zh-CN.md index d51495f..328d8d3 100644 --- a/README.HOW_DOES_IT_WORK.zh-CN.md +++ b/README.HOW_DOES_IT_WORK.zh-CN.md @@ -27,7 +27,7 @@ # "rarreg.key"是如何生成的? -WinRAR使用了基于ECC的签名算法来生成 `rarreg.key` 文件,其使用的签名算法是中国SM2数字签名算法的变体。与各种标准ECDSA不同的是,WinRAR使用的椭圆曲线是一个基于复合域 ![GF2p15p17-inlined] 上的曲线。 +WinRAR 使用了基于 ECC 的签名算法来生成 `rarreg.key` 文件,其使用的签名算法是中国 SM2 数字签名算法的变体。与各种标准 ECDSA 不同的是,WinRAR 使用的椭圆曲线是一个基于复合域 ![GF2p15p17-inlined] 上的曲线。 ## 1. 复合域 ![GF2p15p17-inlined] diff --git a/README.md b/README.md index 503a621..5328169 100644 --- a/README.md +++ b/README.md @@ -17,11 +17,13 @@ License + Visitors

简体中文 | English

+ ## 1. What is WinRAR? WinRAR is a trialware file archiver utility for Windows, developed by Eugene Roshal of win.rar GmbH. @@ -55,7 +57,9 @@ Github Action is a CI/CD tool introduced after Microsoft acquired Github, and yo **Fork** this repo. -![step-1](assets/actions-step-1.png) +![Fork](assets/fork-light.png#gh-light-mode-only) + +![Fork](assets/fork-dark.png#gh-dark-mode-only) If you've forked before and I've committed new code, but you don't know how to merge the new content into your repository, then you can delete the current fork and fork again. @@ -63,7 +67,9 @@ If you've forked before and I've committed new code, but you don't know how to m Go to `keygen/info.json` and click on the edit button to edit the file. -![step-2](assets/actions-step-2.png) +![Edit](assets/edit-json-light.png#gh-light-mode-only) + +![Edit](assets/edit-json-dark.png#gh-dark-mode-only) You can see: @@ -93,11 +99,15 @@ If Github Actions does not start automatically, you will need to click on the Ac Go to **Actions** and select **WinRAR Keygen** to see the status of the program. -![step-3](assets/actions-step-3.png) +![Workflow](assets/push-workflows-light.png#gh-light-mode-only) + +![Workflow](assets/push-workflows-dark.png#gh-dark-mode-only) Green means it ran successfully, yellow means it is running, red means it failed. After running successfully, open the corresponding task and select **rarreg_file** to download. -![step-4](assets/actions-step-4.png) +![Download](assets/file-download-light.png##gh-light-mode-only) + +![Download](assets/file-download-dark.png#gh-dark-mode-only) After extract `rarreg_file.zip`, you will get `rarreg.key`, just drag and drop it into WinRAR. @@ -116,30 +126,44 @@ In order to make Merge and Pull easier for everyone, a new method for using Gith **Fork** this repo. -![step-1](assets/actions-step-1.png) +![Fork](assets/fork-light.png#gh-light-mode-only) + +![Fork](assets/fork-dark.png#gh-dark-mode-only) ### 5.2 Creating Secrets -Go to **Settings > Secrets > New repository secret**: +Go to **Settings > Secrets > Actions > New repository secret**: -![step-2](assets/actions-step-secrets-1.png) +![Secrets](assets/secrets-light.png#gh-light-mode-only) + +![Secrets](assets/secrets-dark.png#gh-dark-mode-only) Create two Secrets named `text1` and `text2` and fill in values: -![step-3](assets/actions-step-secrets-2.png) +![Add Secrets](assets/secrets-add-light.png#gh-light-mode-only) + +![Add Secrets](assets/secrets-add-dark.png#gh-dark-mode-only) Once created, you will see: -![step-4](assets/actions-step-secrets-3.png) +![Secrets Repo](assets/secrets-repo-light.png#gh-light-mode-only) + +![Secrets Repo](assets/secrets-repo-dark.png#gh-dark-mode-only) ### 5.3 Run Workflow Go to **Actions** and select **WinRAR Keygen Secrets** to run Workflow manually: -![step-5](assets/actions-step-secrets-4.png) +![Run](assets/run-workflow-light.png#gh-light-mode-only) + +![Run](assets/run-workflow-dark.png#gh-dark-mode-only) After running successfully, open the corresponding task and select **rarreg_file** to download. +![Download](assets/file-download-light.png##gh-light-mode-only) + +![Download](assets/file-download-dark.png#gh-dark-mode-only) + ## 6. Build in Visual Studio diff --git a/README.zh-CN.md b/README.zh-CN.md index a0773e1..216483d 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -17,11 +17,13 @@ License + Visitors

简体中文 | English

+ ## 1. WinRAR是什么? WinRAR是一款用于管理压缩包文件的共享软件。其算法由作者尤金·罗谢尔研发,享有原创专利。 @@ -55,7 +57,9 @@ Github Action 是微软收购 Github 之后推出的 CI/CD 工具,通过以下 点击该项目右上角的 **Fork** 按钮,fork 一份代码到你的 Github: -![step-1](assets/actions-step-1.png) +![Fork](assets/fork-light.png#gh-light-mode-only) + +![Fork](assets/fork-dark.png#gh-dark-mode-only) 如果你之前 fork 过,然后我提交了新的代码,但是你不懂得如何合并新内容到你的仓库,那你也可以删掉当前 fork 的仓库,然后重新 fork 一次。 @@ -63,7 +67,9 @@ Github Action 是微软收购 Github 之后推出的 CI/CD 工具,通过以下 进入 `keygen/info.json`,点击编辑按钮,对该文件进行编辑: -![step-2](assets/actions-step-2.png) +![Edit](assets/edit-json-light.png#gh-light-mode-only) + +![Edit](assets/edit-json-dark.png#gh-dark-mode-only) 打开该文件,你会发现有以下内容: @@ -93,11 +99,15 @@ Github Action 是微软收购 Github 之后推出的 CI/CD 工具,通过以下 进入 **Actions** 并选择 **WinRAR Keygen** 页面查看程序运行状况: -![step-3](assets/actions-step-3.png) +![Workflow](assets/push-workflows-light.png#gh-light-mode-only) + +![Workflow](assets/push-workflows-dark.png#gh-dark-mode-only) 绿色说明运行成功,黄色说明正在运行,红色说明运行失败。运行成功之后,打开对应的任务,选择 **rarreg_file** 下载: -![step-4](assets/actions-step-4.png) +![Download](assets/file-download-light.png##gh-light-mode-only) + +![Download](assets/file-download-dark.png#gh-dark-mode-only) 将 `rarreg_file.zip` 解压缩后会得到 `rarreg.key`,然后拖动导入 WinRAR 即可。 @@ -116,31 +126,45 @@ Github Action 是微软收购 Github 之后推出的 CI/CD 工具,通过以下 点击该项目右上角的 **Fork** 按钮,fork 一份代码到你的 Github: -![step-1](assets/actions-step-1.png) +![Fork](assets/fork-light.png#gh-light-mode-only) + +![Fork](assets/fork-dark.png#gh-dark-mode-only) 如果你之前 fork 过,然后我提交了新的代码,但是你不懂得如何合并新内容到你的仓库,那你也可以删掉当前 fork 的仓库,然后重新 fork 一次。 ### 5.2 创建 Secrets -进入 **Settings > Secrets > New repository secret** 来创建: +进入 **Settings > Secrets > Actions > New repository secret** 来创建: -![step-2](assets/actions-step-secrets-1.png) +![Secrets](assets/secrets-light.png#gh-light-mode-only) + +![Secrets](assets/secrets-dark.png#gh-dark-mode-only) 创建两个 Secrets,名称为 `text1` 和 `text2`,并填入相关值: -![step-3](assets/actions-step-secrets-2.png) +![Add Secrets](assets/secrets-add-light.png#gh-light-mode-only) + +![Add Secrets](assets/secrets-add-dark.png#gh-dark-mode-only) 创建完成后,你将会看到: -![step-4](assets/actions-step-secrets-3.png) +![Secrets Repo](assets/secrets-repo-light.png#gh-light-mode-only) + +![Secrets Repo](assets/secrets-repo-dark.png#gh-dark-mode-only) ### 5.3 运行 Workflow 进入 **Actions** 并选择 **WinRAR Keygen Secrets** 来手动执行 Workflow: -![step-5](assets/actions-step-secrets-4.png) +![Run](assets/run-workflow-light.png#gh-light-mode-only) -运行成功之后,打开对应的任务,选择 **rarreg_file** 下载。 +![Run](assets/run-workflow-dark.png#gh-dark-mode-only) + +运行成功之后,打开对应的任务,选择 **rarreg_file** 下载: + +![Download](assets/file-download-light.png##gh-light-mode-only) + +![Download](assets/file-download-dark.png#gh-dark-mode-only) diff --git a/assets/actions-step-1.png b/assets/actions-step-1.png deleted file mode 100644 index 01181be..0000000 Binary files a/assets/actions-step-1.png and /dev/null differ diff --git a/assets/actions-step-2.png b/assets/actions-step-2.png deleted file mode 100644 index bd02be0..0000000 Binary files a/assets/actions-step-2.png and /dev/null differ diff --git a/assets/actions-step-3.png b/assets/actions-step-3.png deleted file mode 100644 index bb7f7a9..0000000 Binary files a/assets/actions-step-3.png and /dev/null differ diff --git a/assets/actions-step-4.png b/assets/actions-step-4.png deleted file mode 100644 index 873e8ea..0000000 Binary files a/assets/actions-step-4.png and /dev/null differ diff --git a/assets/actions-step-secrets-1.png b/assets/actions-step-secrets-1.png deleted file mode 100644 index 1d34abb..0000000 Binary files a/assets/actions-step-secrets-1.png and /dev/null differ diff --git a/assets/actions-step-secrets-2.png b/assets/actions-step-secrets-2.png deleted file mode 100644 index b6f9373..0000000 Binary files a/assets/actions-step-secrets-2.png and /dev/null differ diff --git a/assets/actions-step-secrets-3.png b/assets/actions-step-secrets-3.png deleted file mode 100644 index a2ec8df..0000000 Binary files a/assets/actions-step-secrets-3.png and /dev/null differ diff --git a/assets/actions-step-secrets-4.png b/assets/actions-step-secrets-4.png deleted file mode 100644 index 44eb0af..0000000 Binary files a/assets/actions-step-secrets-4.png and /dev/null differ diff --git a/assets/edit-json-dark.png b/assets/edit-json-dark.png new file mode 100644 index 0000000..41b17c2 Binary files /dev/null and b/assets/edit-json-dark.png differ diff --git a/assets/edit-json-light.png b/assets/edit-json-light.png new file mode 100644 index 0000000..702e0d4 Binary files /dev/null and b/assets/edit-json-light.png differ diff --git a/assets/file-download-dark.png b/assets/file-download-dark.png new file mode 100644 index 0000000..0b940e0 Binary files /dev/null and b/assets/file-download-dark.png differ diff --git a/assets/file-download-light.png b/assets/file-download-light.png new file mode 100644 index 0000000..cec009e Binary files /dev/null and b/assets/file-download-light.png differ diff --git a/assets/fork-dark.png b/assets/fork-dark.png new file mode 100644 index 0000000..d198fa9 Binary files /dev/null and b/assets/fork-dark.png differ diff --git a/assets/fork-light.png b/assets/fork-light.png new file mode 100644 index 0000000..155652a Binary files /dev/null and b/assets/fork-light.png differ diff --git a/assets/push-workflows-dark.png b/assets/push-workflows-dark.png new file mode 100644 index 0000000..528c151 Binary files /dev/null and b/assets/push-workflows-dark.png differ diff --git a/assets/push-workflows-light.png b/assets/push-workflows-light.png new file mode 100644 index 0000000..3c61dcd Binary files /dev/null and b/assets/push-workflows-light.png differ diff --git a/assets/run-workflow-dark.png b/assets/run-workflow-dark.png new file mode 100644 index 0000000..12bac20 Binary files /dev/null and b/assets/run-workflow-dark.png differ diff --git a/assets/run-workflow-light.png b/assets/run-workflow-light.png new file mode 100644 index 0000000..b214fd5 Binary files /dev/null and b/assets/run-workflow-light.png differ diff --git a/assets/secrets-add-dark.png b/assets/secrets-add-dark.png new file mode 100644 index 0000000..a3fd251 Binary files /dev/null and b/assets/secrets-add-dark.png differ diff --git a/assets/secrets-add-light.png b/assets/secrets-add-light.png new file mode 100644 index 0000000..5025955 Binary files /dev/null and b/assets/secrets-add-light.png differ diff --git a/assets/secrets-dark.png b/assets/secrets-dark.png new file mode 100644 index 0000000..c4ef21d Binary files /dev/null and b/assets/secrets-dark.png differ diff --git a/assets/secrets-light.png b/assets/secrets-light.png new file mode 100644 index 0000000..8b72e38 Binary files /dev/null and b/assets/secrets-light.png differ diff --git a/assets/secrets-repo-dark.png b/assets/secrets-repo-dark.png new file mode 100644 index 0000000..2879143 Binary files /dev/null and b/assets/secrets-repo-dark.png differ diff --git a/assets/secrets-repo-light.png b/assets/secrets-repo-light.png new file mode 100644 index 0000000..b9c6ffd Binary files /dev/null and b/assets/secrets-repo-light.png differ