-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit b1ae5fd
Showing
41 changed files
with
6,169 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Simple workflow for deploying static content to GitHub Pages | ||
name: Deploy static content to Pages | ||
|
||
on: | ||
# Runs on pushes targeting the default branch | ||
push: | ||
branches: ["main"] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
# Single deploy job since we're just deploying | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v5 | ||
# Optional: Install dependencies and build the project if needed | ||
- name: Install and Build | ||
run: | | ||
npm install | ||
npm run build-dev | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
# Upload entire repository | ||
path: './dist' | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
node_modules | ||
.DS_Store | ||
dist-ssr | ||
coverage | ||
*.local | ||
|
||
/cypress/videos/ | ||
/cypress/screenshots/ | ||
|
||
# Editor directories and files | ||
.vscode/* | ||
!.vscode/extensions.json | ||
.idea | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? | ||
|
||
*.tsbuildinfo | ||
.env | ||
.vscode/ | ||
dist.zip | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# dazhengTools | ||
|
||
[中文](./README_CN.md) | ||
|
||
click [https://dazhengs.github.io/tools/](https://dazhengs.github.io/tools/) or [https://tools.dazheng.site](https://tools.dazheng.site) to use this dazhengTools. | ||
|
||
This is a toolkit that supports various encryption and encoding algorithms with the following features: | ||
|
||
1. **Symmetric Encryption and Decryption**: Supports AES (GCM, CBC, CFB, OFB, CTR, ECB) and SM4 (ECB, CBC) modes for encryption and decryption. The IV is randomly generated and appended to the ciphertext, ensuring secure data transmission. | ||
2. **Asymmetric Encryption and Decryption, Signing, and Verification**: Supports RSA2048 and SM2 algorithms, enabling data encryption, decryption, as well as digital signing and signature verification, ensuring data integrity and non-repudiation. | ||
3. **Hash Calculation**: Supports common hashing algorithms such as MD5, SHA1, SHA256, SHA512, SHA3, and SM3, for computing data digests. | ||
4. **Encoding and Decoding**: Provides encoding and decoding for formats like Unicode, UTF-8, Hex, URL, Base64, and MD5, facilitating the handling of various data formats. | ||
5. **Random Password Generation**: Features a random complex password generator to ensure password strength and security. | ||
6. **Standalone Operation**: Works without backend services and can be used offline, providing security and reliability in any environment. | ||
|
||
This toolkit is designed to offer comprehensive encryption, decryption, and encoding solutions for various use cases. | ||
|
||
|
||
## Project Setup | ||
|
||
```sh | ||
npm install | ||
``` | ||
|
||
### Compile and Hot-Reload for Development | ||
|
||
```sh | ||
npm run dev | ||
``` | ||
|
||
### Compile and Minify for Production | ||
|
||
```sh | ||
npm run build | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# dazhengTools | ||
|
||
点击 [https://dazhengs.github.io/tools/](https://dazhengs.github.io/tools/) 或 [https://tools.dazheng.site](https://tools.dazheng.site) 来使用 dazhengTools. | ||
|
||
|
||
这是一个支持多种加密与编码算法的工具库,具备以下功能: | ||
|
||
1. **对称加密与解密**:支持 AES(GCM、CBC、CFB、OFB、CTR、ECB)及 SM4(ECB、CBC)模式的加解密,随机生成的 IV 会附加在密文中,确保数据传输的安全性。 | ||
2. **非对称加密与解密、签名与验签**:支持 RSA2048 和 SM2 算法,能够进行数据加解密、数字签名以及签名验证,确保数据完整性和不可否认性。 | ||
3. **哈希计算**:支持 MD5、SHA1、SHA256、SHA512、SHA3 和 SM3 等常见哈希算法,用于计算数据摘要。 | ||
4. **编码解码**:提供 Unicode、UTF-8、Hex、URL、Base64 以及 MD5 的编码和解码功能,方便处理多种数据格式。 | ||
5. **随机密码生成**:提供复杂的随机密码生成器,确保密码的强度和安全性。 | ||
6. **独立运行**:无需后端支持,可离线使用,提供安全可靠的环境。 | ||
|
||
此工具旨在为用户提供全面的加密、解密和编码解决方案,适用于多种场景。 | ||
|
||
## 项目设置 | ||
|
||
```sh | ||
npm install | ||
``` | ||
|
||
### 编译并开启热加载用于开发 | ||
|
||
```sh | ||
npm run dev | ||
``` | ||
|
||
### 编译并压缩用于生产环境 | ||
|
||
```sh | ||
npm run build | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<link rel="icon" href="/favicon.ico"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>dazheng's tools</title> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
<script type="module" src="/src/main.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"compilerOptions": { | ||
"paths": { | ||
"@/*": ["./src/*"] | ||
} | ||
}, | ||
"exclude": ["node_modules", "dist"] | ||
} |
Oops, something went wrong.