mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-23 22:31:10 +03:00
Compare commits
45
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b9ab7cbf2d | ||
|
|
d0582b3142 | ||
|
|
6ab8265944 | ||
|
|
6c718820a4 | ||
|
|
f5c4ab19bc | ||
|
|
67094980c9 | ||
|
|
87984e2081 | ||
|
|
318fb6efb9 | ||
|
|
f1a5489e21 | ||
|
|
e1b4f9aafe | ||
|
|
6d0b6c5c4f | ||
|
|
54dba5e2e0 | ||
|
|
40d5a6a77f | ||
|
|
76a19d218d | ||
|
|
b430baef40 | ||
|
|
dd4b7e687b | ||
|
|
30144aa3f5 | ||
|
|
ddd3f6ed09 | ||
|
|
e876d03608 | ||
|
|
81cf6b5483 | ||
|
|
a0bc3468b2 | ||
|
|
5a7b0f9636 | ||
|
|
b59942ad9f | ||
|
|
38d568798c | ||
|
|
9dfd347edf | ||
|
|
33e5294a94 | ||
|
|
2852c30e1f | ||
|
|
124284278f | ||
|
|
a7992340f7 | ||
|
|
2c2fb216e3 | ||
|
|
c10302b138 | ||
|
|
2f64b7e53d | ||
|
|
221ddfa75c | ||
|
|
5732ce7a4f | ||
|
|
cb5b462e11 | ||
|
|
9eac9cb2a9 | ||
|
|
23f82d956a | ||
|
|
d3b32cc14e | ||
|
|
6445c80b36 | ||
|
|
ce8199e338 | ||
|
|
fe349ad69b | ||
|
|
e073b2babf | ||
|
|
83832f3e2c | ||
|
|
ee40ba1439 | ||
|
|
3f32990499 |
No files matched your search
@@ -1,34 +0,0 @@
|
||||
---
|
||||
name: Bug report
|
||||
about: Create a report to help us improve our tools
|
||||
title: '[BUG] '
|
||||
labels: bug
|
||||
assignees: CorentinTh
|
||||
---
|
||||
|
||||
**Which tool is impacted?**
|
||||
Example: the token generator
|
||||
|
||||
**To Reproduce**
|
||||
Steps to reproduce the behavior:
|
||||
|
||||
1. Go to '...'
|
||||
2. Click on '....'
|
||||
3. Scroll down to '....'
|
||||
4. See error
|
||||
|
||||
**Expected behavior**
|
||||
A clear and concise description of what you expected to happen.
|
||||
|
||||
**Screenshots**
|
||||
If applicable, add screenshots to help explain your problem.
|
||||
|
||||
**Configuration (please complete the following information):**
|
||||
|
||||
- Device: [e.g. iPhone6, ]
|
||||
- OS: [e.g. iOS]
|
||||
- Browser [e.g. chrome, safari]
|
||||
- Version [e.g. 22]
|
||||
|
||||
**Additional context**
|
||||
Add any other context about the problem here.
|
||||
@@ -0,0 +1,48 @@
|
||||
name: 🐞 Bug Report
|
||||
description: File a bug report.
|
||||
labels: ['bug', 'triage']
|
||||
assignees:
|
||||
- CorentinTh
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
Thanks for taking the time to fill out this bug report!
|
||||
|
||||
- type: textarea
|
||||
id: bug-description
|
||||
attributes:
|
||||
label: Describe the bug
|
||||
description: A clear and concise description of what the bug is. If you intend to submit a PR for this issue, tell us in the description. Thanks!
|
||||
placeholder: Bug description
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: what-happened
|
||||
attributes:
|
||||
label: What happened?
|
||||
description: Also tell us, what did you expect to happen? If you have a screenshot, you can paste it here.
|
||||
placeholder: Tell us what you see!
|
||||
value: 'A bug happened!'
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: version
|
||||
attributes:
|
||||
label: System information
|
||||
description: What is you environment? You can use the `npx envinfo --system --browsers` command to get this information.
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: dropdown
|
||||
id: app-type
|
||||
attributes:
|
||||
label: Where did you encounter the bug?
|
||||
options:
|
||||
- Public app (it-tools.tech)
|
||||
- A self hosted
|
||||
- Other (installations, docker, etc.)
|
||||
validations:
|
||||
required: true
|
||||
@@ -0,0 +1 @@
|
||||
blank_issues_enabled: false
|
||||
@@ -0,0 +1,56 @@
|
||||
name: 🚀 New feature proposal
|
||||
description: Propose a new feature/enhancement or tool idea for IT-Tools
|
||||
labels: ['enhancement', 'triage']
|
||||
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
Thanks for your interest in the project and taking the time to fill out this feature report!
|
||||
|
||||
- type: dropdown
|
||||
id: request-type
|
||||
attributes:
|
||||
label: What type of request is this?
|
||||
options:
|
||||
- New tool idea
|
||||
- New feature for an existing tool
|
||||
- Deployment or CI/CD improvement
|
||||
- Self-hosting improvement
|
||||
- Other
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: feature-description
|
||||
attributes:
|
||||
label: Clear and concise description of the feature you are proposing
|
||||
description: A clear and concise description of what the feature is.
|
||||
placeholder: 'Example: a token generator tool'
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: alternative
|
||||
attributes:
|
||||
label: Is their example of this tool in the wild?
|
||||
description: Provide link to already existing tool (like websites, apps, cli, ...) or npm packages that could be used or provide inspiration for the feature.
|
||||
|
||||
- type: textarea
|
||||
id: additional-context
|
||||
attributes:
|
||||
label: Additional context
|
||||
description: Any other context or screenshots about the feature request here.
|
||||
|
||||
- type: checkboxes
|
||||
id: checkboxes
|
||||
attributes:
|
||||
label: Validations
|
||||
description: Before submitting the issue, please make sure you do the following
|
||||
options:
|
||||
- label: Check the feature is not already implemented in the project.
|
||||
required: true
|
||||
- label: Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
|
||||
required: true
|
||||
- label: Check that the feature can be implemented in a client side only app (IT-Tools is client side only, no server).
|
||||
required: true
|
||||
@@ -1,19 +0,0 @@
|
||||
---
|
||||
name: New tool request
|
||||
about: Suggest a new tool idea
|
||||
title: '[NEW TOOL]'
|
||||
labels: new tool
|
||||
assignees: CorentinTh
|
||||
---
|
||||
|
||||
**What tool do you want?**
|
||||
Example: a token generator
|
||||
|
||||
**Describe the solution you'd like**
|
||||
A clear and concise description of what you want to happen.
|
||||
|
||||
**Is their example of this tool in the wild?**
|
||||
Provide link to already existing tool or npm packages if any exists
|
||||
|
||||
**Additional context**
|
||||
Add any other context about the feature request here.
|
||||
@@ -1,13 +0,0 @@
|
||||
---
|
||||
name: Other request
|
||||
about: Any request that does not concern a tool creation, a new feature request on a tool or a bug
|
||||
title: '[OTHER] '
|
||||
labels:
|
||||
assignees: CorentinTh
|
||||
---
|
||||
|
||||
**Describe the solution you'd like**
|
||||
A clear and concise description of what you want.
|
||||
|
||||
**Additional context**
|
||||
Add any other context about the feature request here.
|
||||
@@ -1,13 +0,0 @@
|
||||
---
|
||||
name: Tool improvement
|
||||
about: Improvement on an existing tool
|
||||
title: '[TOOL IMPROVEMENT]'
|
||||
labels: enhancement
|
||||
assignees: CorentinTh
|
||||
---
|
||||
|
||||
**Describe the solution you'd like**
|
||||
A clear and concise description of what you want to happen.
|
||||
|
||||
**Additional context**
|
||||
Add any other context about the feature request here.
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 39 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 39 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 7.8 KiB |
@@ -15,7 +15,7 @@ jobs:
|
||||
- run: corepack enable
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
node-version: 20
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Install dependencies
|
||||
|
||||
@@ -1,69 +0,0 @@
|
||||
# For most projects, this workflow file will not need changing; you simply need
|
||||
# to commit it to your repository.
|
||||
#
|
||||
# You may wish to alter this file to override the set of languages analyzed,
|
||||
# or to provide custom queries or build logic.
|
||||
#
|
||||
# ******** NOTE ********
|
||||
# We have attempted to detect the languages in your repository. Please check
|
||||
# the `language` matrix defined below to confirm you have the correct set of
|
||||
# supported CodeQL languages.
|
||||
#
|
||||
name: "CodeQL"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ dev ]
|
||||
pull_request:
|
||||
# The branches below must be a subset of the branches above
|
||||
branches: [ dev ]
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
name: Analyze
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
actions: read
|
||||
contents: read
|
||||
security-events: write
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
language: [ 'javascript' ]
|
||||
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
|
||||
# Learn more:
|
||||
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
|
||||
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v2
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||
# By default, queries listed here will override any specified in a config file.
|
||||
# Prefix the list here with "+" to use these queries and those in the config file.
|
||||
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
||||
|
||||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
||||
# If this step fails, then you should remove it and run the build manually (see below)
|
||||
- name: Autobuild
|
||||
uses: github/codeql-action/autobuild@v2
|
||||
|
||||
# ℹ️ Command-line programs to run using the OS shell.
|
||||
# 📚 https://git.io/JvXDl
|
||||
|
||||
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
|
||||
# and modify them (or add more) to build your code if your project
|
||||
# uses a compiled language
|
||||
|
||||
#- run: |
|
||||
# make bootstrap
|
||||
# make release
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v2
|
||||
@@ -32,7 +32,7 @@ jobs:
|
||||
- run: corepack enable
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
node-version: 20
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Install dependencies
|
||||
|
||||
@@ -18,7 +18,7 @@ jobs:
|
||||
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
node-version: 20
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Get Playwright version
|
||||
|
||||
@@ -61,7 +61,7 @@ jobs:
|
||||
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
node-version: 20
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Install dependencies
|
||||
|
||||
@@ -2,9 +2,51 @@
|
||||
|
||||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
||||
|
||||
## Version 2024.05.13-a0bc346
|
||||
|
||||
### Features
|
||||
- **i18n**: added German translation (#1038) (2c2fb21)
|
||||
- **new tool**: Outlook Safelink Decoder (#911) (d3b32cc)
|
||||
- **new tool**: ascii art generator (#886) (fe349ad)
|
||||
- **i18n**: get locales on build (#880) (dc04615)
|
||||
- **i18n**: added vi tools translations (#876) (079aa21)
|
||||
- **i18n**: added zh tools translations (#874) (9c6b122)
|
||||
- **i18n**: added missing locale files in tools (#863) (7f5fa00)
|
||||
- **i18n**: added vietnamese language (#859) (1334bff)
|
||||
- **i18n**: added spanish language (#854) (85b50bb)
|
||||
- **i18n**: added portuguese language (#813) (c65ffb6)
|
||||
- **i18n**: added ukrainian language (#827) (693f362)
|
||||
- **new-tool**: yaml formater (#779) (fc06f01)
|
||||
- **new-tool**: added unicode conversion utilities (#858) (c46207f)
|
||||
|
||||
### Bug fixes
|
||||
- **language**: English language cleanup (#1036) (221ddfa)
|
||||
- **url-encoder, validation**: typo in validation of url-encoder.vue #1024 (cb5b462)
|
||||
- **integer base converter**: support bigint (#872) (9eac9cb)
|
||||
- **bcrypt tool**: allow salt rounds up to 100 (#987) (23f82d9)
|
||||
|
||||
### Refactoring
|
||||
- **lint**: removed extra semi (33e5294)
|
||||
- **auto-imports**: regen auto imports (1242842)
|
||||
- **home**: lightened tool cards (#882) (a07806c)
|
||||
- **home**: removed n-grid to prevent layout shift (#881) (10e56b3)
|
||||
- **i18n**: added locales per tool (#861) (95698cb)
|
||||
|
||||
### Chores
|
||||
- **issues**: prevent empty issues (#1078) (a0bc346)
|
||||
- **issues**: removed old issue templates (#1077) (5a7b0f9)
|
||||
- **node**: upgraded node version in CI workflows (b59942a)
|
||||
- **version**: release 2024.05.10-33e5294 (38d5687)
|
||||
- **issues**: improved issues template (2852c30)
|
||||
- **issues**: improved bug issue template (#1046) (a799234)
|
||||
|
||||
### Documentation
|
||||
- **changelog**: update changelog for 2024.05.10-33e5294 (9dfd347)
|
||||
|
||||
## Version 2023.12.21-5ed3693
|
||||
|
||||
### Features
|
||||
|
||||
- **i18n**: improve chinese i18n (#757) (2e56641)
|
||||
- **i18n**: add tooltip and favoriteButton i18n (#756) (a1037cf)
|
||||
- **i18n**: add Chinese translation base (#718) (8f99eb6)
|
||||
@@ -12,6 +54,7 @@ All notable changes to this project will be documented in this file. See [standa
|
||||
- **new tool**: numeronym generator (#729) (e07e2ae)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- **jwt-parser**: jwt claim array support (#799) (5ed3693)
|
||||
- **camera-recorder**: stop camera on navigation (#782) (80e46c9)
|
||||
- **doc**: updated create new tool command in readme (#762) (7a70dbb)
|
||||
@@ -20,6 +63,7 @@ All notable changes to this project will be documented in this file. See [standa
|
||||
- **eta**: corrected example (#737) (821cbea)
|
||||
|
||||
### Refactoring
|
||||
|
||||
- **about, i18n**: improved i18n dx with markdown (#753) (bd3edcb)
|
||||
- **token, i18n**: complete fr translation (#752) (de1ee69)
|
||||
- **uuid generator**: uuid version picker (#751) (38586ca)
|
||||
@@ -29,6 +73,7 @@ All notable changes to this project will be documented in this file. See [standa
|
||||
- **bcrypt**: fix input label align (#721) (093ff31)
|
||||
|
||||
### Chores
|
||||
|
||||
- **deps**: switched from oui to oui-data for mac address lookup (#693) (0fe9a20)
|
||||
- **deps**: update unocss monorepo to ^0.57.0 (#638) (2e396d8)
|
||||
- **docker**: added armv7 plateform for docker releases (#722) (fe1de8c)
|
||||
@@ -36,19 +81,23 @@ All notable changes to this project will be documented in this file. See [standa
|
||||
## Version 2023.11.02-7d94e11
|
||||
|
||||
### Features
|
||||
|
||||
- **i18n**: language selector (#710) (e86fd96)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- **dockerfile**: revert replacement of nginx image with non-privileged one (#716) (7d94e11)
|
||||
- **encryption**: alert on decryption error (#711) (02b0d0d)
|
||||
|
||||
### Refactoring
|
||||
|
||||
- **math-evaluator**: improved description (e87f4b1)
|
||||
- **math-evaluator**: improved search and UX (#713) (58de897)
|
||||
|
||||
## Version 2023.11.01-e164afb
|
||||
|
||||
### Features
|
||||
|
||||
- **command-palette**: clear prompt on palette close (#708) (d013696)
|
||||
- **command-palette**: added about page in command palette (99b1eb9)
|
||||
- **new tool**: random MAC address generator (#657) (cc3425d)
|
||||
@@ -67,11 +116,13 @@ All notable changes to this project will be documented in this file. See [standa
|
||||
- **new tool**: text diff and comparator (#588) (81bfe57)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- **deps**: fix issue on slugify (#593) (#673) (720201a)
|
||||
- **deps**: update dependency monaco-editor to ^0.43.0 (#620) (e371ef7)
|
||||
- **deps**: update dependency sql-formatter to v13 (#606) (c7d4562)
|
||||
|
||||
### Refactoring
|
||||
|
||||
- **ui**: better ui demo preview menu (#664) (015c673)
|
||||
- **color-converter**: improved color-converter UX (#701) (abb8335)
|
||||
- **docker**: improved docker config (#700) (020e9cb)
|
||||
@@ -88,6 +139,7 @@ All notable changes to this project will be documented in this file. See [standa
|
||||
- **bcrypt**: fix typo (#604) (e18bae1)
|
||||
|
||||
### Chores
|
||||
|
||||
- **deps**: clean unused dependencies (#709) (e164afb)
|
||||
- **deps**: update docker/setup-qemu-action action to v3 (#627) (4365226)
|
||||
- **deps**: update docker/setup-buildx-action action to v3 (#626) (57ecda1)
|
||||
@@ -102,19 +154,23 @@ All notable changes to this project will be documented in this file. See [standa
|
||||
- **deps**: update dependency typescript to ~5.2.0 (#587) (f3e14fc)
|
||||
|
||||
### Doc
|
||||
|
||||
- **readme**: added contributors list (#622) (557b304)
|
||||
- **hosting**: added cloudron in the other hosting solutions section (#589) (06c3547)
|
||||
|
||||
## Version 2023.08.21-6f93cba
|
||||
|
||||
### Features
|
||||
|
||||
- **copy**: support legacy copy to clipboard for older browser (#581) (6f93cba)
|
||||
- **new tool**: string obfuscator (#575) (c58d6e3)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- **deps**: update dependency sql-formatter to v12 (#520) (2bcb77a)
|
||||
|
||||
### Chores
|
||||
|
||||
- **deps**: switched to fucking typescript v5 (#501) (76b2761)
|
||||
- **deps**: update dependency @antfu/eslint-config to ^0.40.0 (#552) (6ff9a01)
|
||||
- **deps**: update dependency prettier to v3 (#564) (a2b9b15)
|
||||
@@ -124,6 +180,7 @@ All notable changes to this project will be documented in this file. See [standa
|
||||
## Version 2023.08.16-9bd4ad4
|
||||
|
||||
### Features
|
||||
|
||||
- **Case Converter**: Add lowercase and uppercase (#534) (7b6232a)
|
||||
- **new tool**: emoji picker (#551) (93f7cf0)
|
||||
- **ui**: added c-select in the ui lib (#550) (dfa1ba8)
|
||||
@@ -144,6 +201,7 @@ All notable changes to this project will be documented in this file. See [standa
|
||||
- **base64-string-converter**: switch to encode and decode url safe base64 strings (#392) (0b20f1c)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- **deps**: update dependency uuid to v9 (#566) (5e12991)
|
||||
- **deps**: update dependency mathjs to v11 (#519) (7924456)
|
||||
- **deps**: update dependency @vueuse/router to v10 (#516) (ea0f27c)
|
||||
@@ -163,6 +221,7 @@ All notable changes to this project will be documented in this file. See [standa
|
||||
- **ipv4-converter**: removed readonly on input (7aed9c5)
|
||||
|
||||
### Refactoring
|
||||
|
||||
- **navbar**: consistent spacing in navbar buttons (#507) (30f88fc)
|
||||
- **ui**: remove n-text (#506) (72c98a3)
|
||||
- **ui**: replaced some n-input to c-input (#505) (05ea545)
|
||||
@@ -175,6 +234,7 @@ All notable changes to this project will be documented in this file. See [standa
|
||||
- **ui**: replaced some n-input with c-input-text (f7fc779)
|
||||
|
||||
### Chores
|
||||
|
||||
- **deps**: update dependency vitest to ^0.34.0 (#562) (9bd4ad4)
|
||||
- **deps**: update dependency node to v18.17.1 (#560) (65a9474)
|
||||
- **deps**: update dependency unocss to ^0.55.0 (#561) (85cc7a8)
|
||||
@@ -215,47 +275,58 @@ All notable changes to this project will be documented in this file. See [standa
|
||||
- **lint**: switched to a better lint config (33c9b66)
|
||||
|
||||
### Refacor
|
||||
|
||||
- **transformers**: use monospace font for JSON and SQL text areas (#476) (ba4876d)
|
||||
|
||||
### Documentation
|
||||
|
||||
- **ide**: updated vscode extensions settings (#472) (847323c)
|
||||
|
||||
### Chors
|
||||
|
||||
- **deps**: updated vueuse dependency version (8515c24)
|
||||
|
||||
## Version 2023.05.14-77f2efc
|
||||
|
||||
### Features
|
||||
|
||||
- **list-converter**: a small converter who deals with column based data and do some stuff with it (#387) (83a7b3b)
|
||||
- **new tool**: phone parser and normalizer (ce3150c)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- **phone-parser**: use default country code (a43c546)
|
||||
- **home**: prevent weird blue border on card (3f6c8f0)
|
||||
|
||||
### Refactoring
|
||||
|
||||
- **ui**: replaced some n-input with c-input-text (77f2efc)
|
||||
|
||||
### Chores
|
||||
|
||||
- **issues**: updated new tool request issue template (edae4c6)
|
||||
|
||||
### Ui-lib
|
||||
|
||||
- **new-component**: added text input component in the c-lib (aad8d84)
|
||||
- **button**: size variants (401f13f)
|
||||
|
||||
## Version 2023.04.23-92bd835
|
||||
|
||||
### Features
|
||||
|
||||
- **ui-lib**: demo pages for c-lib components (92bd835)
|
||||
- **new-tool**: diff of two json objects (362f2fa)
|
||||
- **ipv4-range-expander**: expands a given IPv4 start and end address to a valid IPv4 subnet (#366) (df989e2)
|
||||
- **date converter**: auto focus main input (6d22025)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- **ts**: cleaned legacy typechecking warning (e88c1d5)
|
||||
- **mac-address-lookup**: added copy handler on button click (c311e38)
|
||||
|
||||
### Refactoring
|
||||
|
||||
- **ui-lib**: prevent c-button to shrink (61ece23)
|
||||
- **ui**: replaced naive ui cards with custom ones (f080933)
|
||||
- **clean**: removed unused lodash import (bb32513)
|
||||
@@ -265,48 +336,60 @@ All notable changes to this project will be documented in this file. See [standa
|
||||
## Version 2023.04.14-dbad773
|
||||
|
||||
### Features
|
||||
|
||||
- **new-tool**: http status codes (8355bd2)
|
||||
|
||||
### Refactoring
|
||||
|
||||
- **uuid-generator**: prevent NaN in quantity (6fb4994)
|
||||
|
||||
### Chores
|
||||
|
||||
- **release**: create a github release on new version (dbad773)
|
||||
- **version**: reset CHANGELOG content to support new format (85cb0ff)
|
||||
|
||||
## Version 2023.04.14-f9b77b7
|
||||
|
||||
### Features
|
||||
|
||||
- **new-tool**: http status codes (8355bd2)
|
||||
|
||||
### Refactoring
|
||||
|
||||
- **uuid-generator**: prevent NaN in quantity (6fb4994)
|
||||
|
||||
### Chores
|
||||
|
||||
- **release**: create a github release on new version (f9b77b7)
|
||||
- **version**: reset CHANGELOG content to support new format (85cb0ff)
|
||||
|
||||
## Version 2023.04.14-2f0d239
|
||||
|
||||
### Features
|
||||
|
||||
- **new-tool**: http status codes (8355bd2)
|
||||
|
||||
### Refactoring
|
||||
|
||||
- **uuid-generator**: prevent NaN in quantity (6fb4994)
|
||||
|
||||
### Chores
|
||||
|
||||
- **release**: create a github release on new version (2f0d239)
|
||||
- **version**: reset CHANGELOG content to support new format (85cb0ff)
|
||||
|
||||
## Version 2023.04.14-474cae4
|
||||
|
||||
### Features
|
||||
|
||||
- **new-tool**: http status codes (8355bd2)
|
||||
|
||||
### Refactoring
|
||||
|
||||
- **uuid-generator**: prevent NaN in quantity (6fb4994)
|
||||
|
||||
### Chores
|
||||
|
||||
- **release**: create a github release on new version (474cae4)
|
||||
- **version**: reset CHANGELOG content to support new format (85cb0ff)
|
||||
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||

|
||||
<picture>
|
||||
<source srcset="./.github/logo-dark.png" media="(prefers-color-scheme: light)">
|
||||
<source srcset="./.github/logo-white.png" media="(prefers-color-scheme: dark)">
|
||||
<img src="./.github/logo-dark.png" alt="logo">
|
||||
</picture>
|
||||
|
||||
Useful tools for developer and people working in IT. [Have a look !](https://it-tools.tech).
|
||||
|
||||
|
||||
Vendored
+12
-31
@@ -12,6 +12,7 @@ declare module '@vue/runtime-core' {
|
||||
'404.page': typeof import('./src/pages/404.page.vue')['default']
|
||||
About: typeof import('./src/pages/About.vue')['default']
|
||||
App: typeof import('./src/App.vue')['default']
|
||||
AsciiTextDrawer: typeof import('./src/tools/ascii-text-drawer/ascii-text-drawer.vue')['default']
|
||||
'Base.layout': typeof import('./src/layouts/base.layout.vue')['default']
|
||||
Base64FileConverter: typeof import('./src/tools/base64-file-converter/base64-file-converter.vue')['default']
|
||||
Base64StringConverter: typeof import('./src/tools/base64-string-converter/base64-string-converter.vue')['default']
|
||||
@@ -32,6 +33,7 @@ declare module '@vue/runtime-core' {
|
||||
CCollapse: typeof import('./src/ui/c-collapse/c-collapse.vue')['default']
|
||||
'CCollapse.demo': typeof import('./src/ui/c-collapse/c-collapse.demo.vue')['default']
|
||||
CDiffEditor: typeof import('./src/ui/c-diff-editor/c-diff-editor.vue')['default']
|
||||
CertificateKeyParser: typeof import('./src/tools/certificate-key-parser/certificate-key-parser.vue')['default']
|
||||
CFileUpload: typeof import('./src/ui/c-file-upload/c-file-upload.vue')['default']
|
||||
'CFileUpload.demo': typeof import('./src/ui/c-file-upload/c-file-upload.demo.vue')['default']
|
||||
ChmodCalculator: typeof import('./src/tools/chmod-calculator/chmod-calculator.vue')['default']
|
||||
@@ -71,6 +73,7 @@ declare module '@vue/runtime-core' {
|
||||
DockerRunToDockerComposeConverter: typeof import('./src/tools/docker-run-to-docker-compose-converter/docker-run-to-docker-compose-converter.vue')['default']
|
||||
DynamicValues: typeof import('./src/tools/benchmark-builder/dynamic-values.vue')['default']
|
||||
Editor: typeof import('./src/tools/html-wysiwyg-editor/editor/editor.vue')['default']
|
||||
EmailNormalizer: typeof import('./src/tools/email-normalizer/email-normalizer.vue')['default']
|
||||
EmojiCard: typeof import('./src/tools/emoji-picker/emoji-card.vue')['default']
|
||||
EmojiGrid: typeof import('./src/tools/emoji-picker/emoji-grid.vue')['default']
|
||||
EmojiPicker: typeof import('./src/tools/emoji-picker/emoji-picker.vue')['default']
|
||||
@@ -88,28 +91,17 @@ declare module '@vue/runtime-core' {
|
||||
HttpStatusCodes: typeof import('./src/tools/http-status-codes/http-status-codes.vue')['default']
|
||||
IbanValidatorAndParser: typeof import('./src/tools/iban-validator-and-parser/iban-validator-and-parser.vue')['default']
|
||||
'IconMdi:brushVariant': typeof import('~icons/mdi/brush-variant')['default']
|
||||
'IconMdi:contentCopy': typeof import('~icons/mdi/content-copy')['default']
|
||||
'IconMdi:kettleSteamOutline': typeof import('~icons/mdi/kettle-steam-outline')['default']
|
||||
IconMdiArrowDown: typeof import('~icons/mdi/arrow-down')['default']
|
||||
IconMdiArrowRightBottom: typeof import('~icons/mdi/arrow-right-bottom')['default']
|
||||
IconMdiCamera: typeof import('~icons/mdi/camera')['default']
|
||||
IconMdiChevronDown: typeof import('~icons/mdi/chevron-down')['default']
|
||||
IconMdiChevronRight: typeof import('~icons/mdi/chevron-right')['default']
|
||||
IconMdiClose: typeof import('~icons/mdi/close')['default']
|
||||
IconMdiContentCopy: typeof import('~icons/mdi/content-copy')['default']
|
||||
IconMdiDeleteOutline: typeof import('~icons/mdi/delete-outline')['default']
|
||||
IconMdiDownload: typeof import('~icons/mdi/download')['default']
|
||||
IconMdiEye: typeof import('~icons/mdi/eye')['default']
|
||||
IconMdiEyeOff: typeof import('~icons/mdi/eye-off')['default']
|
||||
IconMdiHeart: typeof import('~icons/mdi/heart')['default']
|
||||
IconMdiPause: typeof import('~icons/mdi/pause')['default']
|
||||
IconMdiPlay: typeof import('~icons/mdi/play')['default']
|
||||
IconMdiRecord: typeof import('~icons/mdi/record')['default']
|
||||
IconMdiRefresh: typeof import('~icons/mdi/refresh')['default']
|
||||
IconMdiSearch: typeof import('~icons/mdi/search')['default']
|
||||
IconMdiTranslate: typeof import('~icons/mdi/translate')['default']
|
||||
IconMdiTriangleDown: typeof import('~icons/mdi/triangle-down')['default']
|
||||
IconMdiVideo: typeof import('~icons/mdi/video')['default']
|
||||
InputCopyable: typeof import('./src/components/InputCopyable.vue')['default']
|
||||
IntegerBaseConverter: typeof import('./src/tools/integer-base-converter/integer-base-converter.vue')['default']
|
||||
Ipv4AddressConverter: typeof import('./src/tools/ipv4-address-converter/ipv4-address-converter.vue')['default']
|
||||
@@ -120,6 +112,7 @@ declare module '@vue/runtime-core' {
|
||||
JsonMinify: typeof import('./src/tools/json-minify/json-minify.vue')['default']
|
||||
JsonToCsv: typeof import('./src/tools/json-to-csv/json-to-csv.vue')['default']
|
||||
JsonToToml: typeof import('./src/tools/json-to-toml/json-to-toml.vue')['default']
|
||||
JsonToXml: typeof import('./src/tools/json-to-xml/json-to-xml.vue')['default']
|
||||
JsonToYaml: typeof import('./src/tools/json-to-yaml-converter/json-to-yaml.vue')['default']
|
||||
JsonViewer: typeof import('./src/tools/json-viewer/json-viewer.vue')['default']
|
||||
JwtParser: typeof import('./src/tools/jwt-parser/jwt-parser.vue')['default']
|
||||
@@ -129,6 +122,7 @@ declare module '@vue/runtime-core' {
|
||||
LoremIpsumGenerator: typeof import('./src/tools/lorem-ipsum-generator/lorem-ipsum-generator.vue')['default']
|
||||
MacAddressGenerator: typeof import('./src/tools/mac-address-generator/mac-address-generator.vue')['default']
|
||||
MacAddressLookup: typeof import('./src/tools/mac-address-lookup/mac-address-lookup.vue')['default']
|
||||
MarkdownToHtml: typeof import('./src/tools/markdown-to-html/markdown-to-html.vue')['default']
|
||||
MathEvaluator: typeof import('./src/tools/math-evaluator/math-evaluator.vue')['default']
|
||||
MenuBar: typeof import('./src/tools/html-wysiwyg-editor/editor/menu-bar.vue')['default']
|
||||
MenuBarItem: typeof import('./src/tools/html-wysiwyg-editor/editor/menu-bar-item.vue')['default']
|
||||
@@ -136,39 +130,21 @@ declare module '@vue/runtime-core' {
|
||||
MenuLayout: typeof import('./src/components/MenuLayout.vue')['default']
|
||||
MetaTagGenerator: typeof import('./src/tools/meta-tag-generator/meta-tag-generator.vue')['default']
|
||||
MimeTypes: typeof import('./src/tools/mime-types/mime-types.vue')['default']
|
||||
NAlert: typeof import('naive-ui')['NAlert']
|
||||
NavbarButtons: typeof import('./src/components/NavbarButtons.vue')['default']
|
||||
NCheckbox: typeof import('naive-ui')['NCheckbox']
|
||||
NCode: typeof import('naive-ui')['NCode']
|
||||
NCollapseTransition: typeof import('naive-ui')['NCollapseTransition']
|
||||
NColorPicker: typeof import('naive-ui')['NColorPicker']
|
||||
NConfigProvider: typeof import('naive-ui')['NConfigProvider']
|
||||
NDatePicker: typeof import('naive-ui')['NDatePicker']
|
||||
NDivider: typeof import('naive-ui')['NDivider']
|
||||
NDynamicInput: typeof import('naive-ui')['NDynamicInput']
|
||||
NDivider: typeof import('naive-ui')['NDivider']
|
||||
NEllipsis: typeof import('naive-ui')['NEllipsis']
|
||||
NForm: typeof import('naive-ui')['NForm']
|
||||
NFormItem: typeof import('naive-ui')['NFormItem']
|
||||
NGi: typeof import('naive-ui')['NGi']
|
||||
NGrid: typeof import('naive-ui')['NGrid']
|
||||
NH1: typeof import('naive-ui')['NH1']
|
||||
NH2: typeof import('naive-ui')['NH2']
|
||||
NH3: typeof import('naive-ui')['NH3']
|
||||
NIcon: typeof import('naive-ui')['NIcon']
|
||||
NImage: typeof import('naive-ui')['NImage']
|
||||
NInputGroup: typeof import('naive-ui')['NInputGroup']
|
||||
NInputGroupLabel: typeof import('naive-ui')['NInputGroupLabel']
|
||||
NInputNumber: typeof import('naive-ui')['NInputNumber']
|
||||
NLayout: typeof import('naive-ui')['NLayout']
|
||||
NLayoutSider: typeof import('naive-ui')['NLayoutSider']
|
||||
NMenu: typeof import('naive-ui')['NMenu']
|
||||
NProgress: typeof import('naive-ui')['NProgress']
|
||||
NScrollbar: typeof import('naive-ui')['NScrollbar']
|
||||
NSlider: typeof import('naive-ui')['NSlider']
|
||||
NStatistic: typeof import('naive-ui')['NStatistic']
|
||||
NSwitch: typeof import('naive-ui')['NSwitch']
|
||||
NSpace: typeof import('naive-ui')['NSpace']
|
||||
NTable: typeof import('naive-ui')['NTable']
|
||||
NTag: typeof import('naive-ui')['NTag']
|
||||
NumeronymGenerator: typeof import('./src/tools/numeronym-generator/numeronym-generator.vue')['default']
|
||||
OtpCodeGeneratorAndValidator: typeof import('./src/tools/otp-code-generator-and-validator/otp-code-generator-and-validator.vue')['default']
|
||||
PasswordStrengthAnalyser: typeof import('./src/tools/password-strength-analyser/password-strength-analyser.vue')['default']
|
||||
@@ -178,11 +154,15 @@ declare module '@vue/runtime-core' {
|
||||
PhoneParserAndFormatter: typeof import('./src/tools/phone-parser-and-formatter/phone-parser-and-formatter.vue')['default']
|
||||
QrCodeGenerator: typeof import('./src/tools/qr-code-generator/qr-code-generator.vue')['default']
|
||||
RandomPortGenerator: typeof import('./src/tools/random-port-generator/random-port-generator.vue')['default']
|
||||
RegexMemo: typeof import('./src/tools/regex-memo/regex-memo.vue')['default']
|
||||
'RegexMemo.content': typeof import('./src/tools/regex-memo/regex-memo.content.md')['default']
|
||||
RegexTester: typeof import('./src/tools/regex-tester/regex-tester.vue')['default']
|
||||
ResultRow: typeof import('./src/tools/ipv4-range-expander/result-row.vue')['default']
|
||||
RomanNumeralConverter: typeof import('./src/tools/roman-numeral-converter/roman-numeral-converter.vue')['default']
|
||||
RouterLink: typeof import('vue-router')['RouterLink']
|
||||
RouterView: typeof import('vue-router')['RouterView']
|
||||
RsaKeyPairGenerator: typeof import('./src/tools/rsa-key-pair-generator/rsa-key-pair-generator.vue')['default']
|
||||
SafelinkDecoder: typeof import('./src/tools/safelink-decoder/safelink-decoder.vue')['default']
|
||||
SlugifyString: typeof import('./src/tools/slugify-string/slugify-string.vue')['default']
|
||||
SpanCopyable: typeof import('./src/components/SpanCopyable.vue')['default']
|
||||
SqlPrettify: typeof import('./src/tools/sql-prettify/sql-prettify.vue')['default']
|
||||
@@ -209,6 +189,7 @@ declare module '@vue/runtime-core' {
|
||||
UuidGenerator: typeof import('./src/tools/uuid-generator/uuid-generator.vue')['default']
|
||||
WifiQrCodeGenerator: typeof import('./src/tools/wifi-qr-code-generator/wifi-qr-code-generator.vue')['default']
|
||||
XmlFormatter: typeof import('./src/tools/xml-formatter/xml-formatter.vue')['default']
|
||||
XmlToJson: typeof import('./src/tools/xml-to-json/xml-to-json.vue')['default']
|
||||
YamlToJson: typeof import('./src/tools/yaml-to-json-converter/yaml-to-json.vue')['default']
|
||||
YamlToToml: typeof import('./src/tools/yaml-to-toml/yaml-to-toml.vue')['default']
|
||||
YamlViewer: typeof import('./src/tools/yaml-viewer/yaml-viewer.vue')['default']
|
||||
|
||||
+455
@@ -0,0 +1,455 @@
|
||||
'404':
|
||||
notFound: 404 Nicht gefunden
|
||||
sorry: Entschuldigung, diese Seite scheint nicht zu existieren
|
||||
maybe: >-
|
||||
Vielleicht macht der Cache etwas Seltsames. Mit einem erzwungenen Neuladen
|
||||
versuchen?
|
||||
backHome: Zurück zur Startseite
|
||||
home:
|
||||
categories:
|
||||
newestTools: Neueste Tools
|
||||
favoriteTools: Deine Lieblingstools
|
||||
allTools: Alle Tools
|
||||
subtitle: Praktische Tools für Entwickler
|
||||
toggleMenu: Menü umschalten
|
||||
home: Startseite
|
||||
uiLib: UI-Bibliothek
|
||||
support: Unterstütze die Entwicklung von IT-Tools
|
||||
buyMeACoffee: Kauf mir einen Kaffee
|
||||
follow:
|
||||
title: Magst du IT-Tools?
|
||||
p1: Gib uns einen Stern auf
|
||||
githubRepository: IT-Tools GitHub-Repository
|
||||
p2: oder folge uns auf
|
||||
twitterAccount: IT-Tools Twitter-Konto
|
||||
thankYou: Vielen Dank!
|
||||
nav:
|
||||
github: GitHub-Repository
|
||||
githubRepository: IT-Tools GitHub-Repository
|
||||
twitter: Twitter-Konto
|
||||
twitterAccount: IT-Tools Twitter-Konto
|
||||
about: Über IT-Tools
|
||||
aboutLabel: Über
|
||||
darkMode: Dunkelmodus
|
||||
lightMode: Hellmodus
|
||||
mode: Wechseln zwischen dunklem/hellem Modus
|
||||
about:
|
||||
content: >
|
||||
# Über IT-Tools
|
||||
|
||||
Diese wunderbare Website, erstellt mit ❤ von [Corentin
|
||||
Thomasset](https://github.com/CorentinTh), sammelt nützliche Tools für
|
||||
Entwickler und Menschen, die in der IT arbeiten. Wenn du sie nützlich
|
||||
findest, teile sie gerne mit Personen, von denen du denkst, dass sie sie
|
||||
ebenfalls nützlich finden könnten, und vergiss nicht, sie in deiner
|
||||
Lesezeichenleiste zu speichern!
|
||||
|
||||
IT-Tools ist Open Source (unter der MIT-Lizenz) und kostenlos und wird es
|
||||
immer sein, aber es kostet mich Geld, die Website zu hosten und den
|
||||
Domainnamen zu erneuern. Wenn du meine Arbeit unterstützen möchtest und mich
|
||||
ermutigen möchtest, mehr Tools hinzuzufügen, überlege bitte, mich durch
|
||||
[Sponsoring](https://www.buymeacoffee.com/cthmsst) zu unterstützen.
|
||||
|
||||
## Technologien
|
||||
|
||||
IT-Tools wurde mit Vue.js (Vue 3) und der Naive UI-Komponentenbibliothek
|
||||
erstellt und wird von Vercel gehostet und kontinuierlich bereitgestellt. In
|
||||
einigen Tools werden Drittanbieter-Open-Source-Bibliotheken verwendet. Du
|
||||
findest die vollständige Liste in der
|
||||
[package.json](https://github.com/CorentinTh/it-tools/blob/main/package.json)-Datei
|
||||
des Repositorys.
|
||||
|
||||
## Einen Fehler gefunden? Ein Tool fehlt?
|
||||
|
||||
Wenn du ein Tool benötigst, das hier noch nicht vorhanden ist, und du
|
||||
denkst, dass es nützlich sein könnte, bist du herzlich eingeladen, einen
|
||||
Feature-Request im
|
||||
[Issues-Bereich](https://github.com/CorentinTh/it-tools/issues/new/choose)
|
||||
im GitHub-Repository einzureichen.
|
||||
|
||||
Und wenn du einen Fehler gefunden hast oder etwas nicht wie erwartet
|
||||
funktioniert, melde bitte einen Fehler im
|
||||
[Issues-Bereich](https://github.com/CorentinTh/it-tools/issues/new/choose)
|
||||
im GitHub-Repository.
|
||||
favoriteButton:
|
||||
remove: Aus Favoriten entfernen
|
||||
add: Zu Favoriten hinzufügen
|
||||
toolCard:
|
||||
new: Neu
|
||||
search:
|
||||
label: Suche
|
||||
tools:
|
||||
categories:
|
||||
favorite-tools: Deine Lieblingstools
|
||||
crypto: Krypto
|
||||
converter: Konverter
|
||||
web: Web
|
||||
images and videos: Bilder & Videos
|
||||
development: Entwicklung
|
||||
network: Netzwerk
|
||||
math: Mathematik
|
||||
measurement: Messung
|
||||
text: Text
|
||||
data: Daten
|
||||
password-strength-analyser:
|
||||
title: Passwortstärken-Analysator
|
||||
description: >-
|
||||
Ermittle die Stärke deines Passworts mit diesem Client-seitigen
|
||||
Passwortstärken-Analysator und Tool zur Schätzung der Knackzeit.
|
||||
chronometer:
|
||||
title: Chronometer
|
||||
description: >-
|
||||
Überwache die Dauer einer Sache. Im Grunde ein Chronometer mit einfachen
|
||||
Chronometerfunktionen.
|
||||
token-generator:
|
||||
title: Token-Generator
|
||||
description: >-
|
||||
Generiere eine zufällige Zeichenfolge mit den von dir gewünschten Zeichen,
|
||||
Groß- oder Kleinbuchstaben, Zahlen und/oder Symbolen.
|
||||
uppercase: Großbuchstaben (ABC...)
|
||||
lowercase: Kleinbuchstaben (abc...)
|
||||
numbers: Zahlen (123...)
|
||||
symbols: Symbole (!-;...)
|
||||
length: Länge
|
||||
tokenPlaceholder: Der Token ...
|
||||
copied: Token in die Zwischenablage kopiert
|
||||
button:
|
||||
copy: Kopieren
|
||||
refresh: Aktualisieren
|
||||
percentage-calculator:
|
||||
title: Prozentrechner
|
||||
description: >-
|
||||
Berechne einfach Prozentsätze von einem Wert zu einem anderen Wert oder
|
||||
von einem Prozentsatz zu einem Wert.
|
||||
svg-placeholder-generator:
|
||||
title: SVG-Platzhalter-Generator
|
||||
description: >-
|
||||
Generiere SVG-Bilder, die als Platzhalter in deinen Anwendungen verwendet
|
||||
werden können.
|
||||
json-to-csv:
|
||||
title: JSON zu CSV
|
||||
description: Konvertiere JSON mit automatischer Headererkennung in CSV.
|
||||
camera-recorder:
|
||||
title: Kamera-Rekorder
|
||||
description: Mache ein Foto oder nimm ein Video von deiner Webcam oder Kamera auf.
|
||||
keycode-info:
|
||||
title: Keycode-Info
|
||||
description: >-
|
||||
Finde den JavaScript-Keycode, den Code, den Standort und die Modifikatoren
|
||||
einer beliebigen gedrückten Taste.
|
||||
emoji-picker:
|
||||
title: Emoji-Picker
|
||||
description: >-
|
||||
Einfaches Kopieren und Einfügen von Emojis. Erhalte außerdem den Unicode-
|
||||
und Codepunkt-Wert jedes Emojis.
|
||||
color-converter:
|
||||
title: Farbkonverter
|
||||
description: >-
|
||||
Konvertiere Farben zwischen den verschiedenen Formaten (Hex, RGB, HSL und
|
||||
CSS-Name).
|
||||
bcrypt:
|
||||
title: Bcrypt
|
||||
description: >-
|
||||
Hashen und Vergleichen von Strings mit bcrypt. Bcrypt ist eine auf der
|
||||
Blowfish-Chiffre basierende Hash-Funktion.
|
||||
crontab-generator:
|
||||
title: Crontab-Generator
|
||||
description: >-
|
||||
Überprüfe und generiere Crontab und erhalte die menschenlesbare
|
||||
Beschreibung des Cron-Zeitplans.
|
||||
http-status-codes:
|
||||
title: HTTP-Statuscodes
|
||||
description: Liste aller HTTP-Statuscodes, ihrer Namen und ihrer Bedeutung.
|
||||
sql-prettify:
|
||||
title: SQL verschönern und formatieren
|
||||
description: >-
|
||||
Formatiere und verschönere deine SQL-Abfragen online (unterstützt
|
||||
verschiedene SQL-Dialekte).
|
||||
benchmark-builder:
|
||||
title: Benchmark-Builder
|
||||
description: >-
|
||||
Vergleiche ganz einfach die Ausführungszeit von Aufgaben mit diesem sehr
|
||||
einfachen Online-Benchmark-Builder.
|
||||
git-memo:
|
||||
title: Git-Spickzettel
|
||||
description: >-
|
||||
Git ist eine dezentrale Versionsverwaltungssoftware. Mit diesem
|
||||
Spickzettel hast du schnellen Zugriff auf die gängigsten Git-Befehle.
|
||||
slugify-string:
|
||||
title: Slugify String
|
||||
description: Mache einen String URL-, Dateinamen- und ID-sicher.
|
||||
encryption:
|
||||
title: Text verschlüsseln / entschlüsseln
|
||||
description: >-
|
||||
Verschlüssele und entschlüssele Klartext mithilfe von Kryptoalgorithmen
|
||||
wie AES, TripleDES, Rabbit oder RC4.
|
||||
random-port-generator:
|
||||
title: Zufälliger Port-Generator
|
||||
description: >-
|
||||
Generiere zufällige Portnummern außerhalb des Bereichs der "bekannten"
|
||||
Ports (0-1023).
|
||||
yaml-prettify:
|
||||
title: YAML verschönern und formatieren
|
||||
description: Verschönere deinen YAML-String in ein menschenlesbares Format.
|
||||
eta-calculator:
|
||||
title: ETA-Rechner
|
||||
description: >-
|
||||
Ein ETA (Estimated Time of Arrival)-Rechner, um die ungefähre Endzeit
|
||||
einer Aufgabe zu erfahren, z. B. den Zeitpunkt des Endes eines Downloads.
|
||||
roman-numeral-converter:
|
||||
title: Römische Zahlen Konverter
|
||||
description: >-
|
||||
Konvertiere römische Zahlen in Dezimalzahlen und Dezimalzahlen in römische
|
||||
Zahlen.
|
||||
hmac-generator:
|
||||
title: HMAC-Generator
|
||||
description: >-
|
||||
Berechnet einen hashbasierten Nachrichtenauthentifizierungscode (HMAC)
|
||||
unter Verwendung eines geheimen Schlüssels und deiner bevorzugten
|
||||
Hash-Funktion.
|
||||
bip39-generator:
|
||||
title: BIP39-Passphrasengenerator
|
||||
description: >-
|
||||
Generiere BIP39-Passphrasen aus vorhandener oder zufälliger Mnemonik oder
|
||||
erhalte die Mnemonik aus der Passphrase.
|
||||
base64-file-converter:
|
||||
title: Base64-Dateikonverter
|
||||
description: Konvertiere Strings, Dateien oder Bilder in ihre Base64-Repräsentation.
|
||||
list-converter:
|
||||
title: Listenkonverter
|
||||
description: >-
|
||||
Dieses Tool kann spaltenbasierte Daten verarbeiten und verschiedene
|
||||
Änderungen (transponieren, Präfix und Suffix hinzufügen, Liste umkehren,
|
||||
Liste sortieren, Werte in Kleinbuchstaben umwandeln, Werte abschneiden)
|
||||
auf jede Zeile anwenden.
|
||||
base64-string-converter:
|
||||
title: Base64-String-Encoder/Decoder
|
||||
description: Codiere und decodiere Strings einfach in ihre Base64-Repräsentation.
|
||||
toml-to-yaml:
|
||||
title: TOML zu YAML
|
||||
description: Parse und konvertiere TOML zu YAML.
|
||||
math-evaluator:
|
||||
title: Mathematischer Auswerter
|
||||
description: >-
|
||||
Ein Taschenrechner zum Auswerten mathematischer Ausdrücke. Du kannst
|
||||
Funktionen wie sqrt, cos, sin, abs usw. verwenden.
|
||||
json-to-yaml-converter:
|
||||
title: JSON zu YAML
|
||||
description: Konvertiere JSON einfach in YAML mit diesem Live-Online-Konverter.
|
||||
url-parser:
|
||||
title: URL-Parser
|
||||
description: >-
|
||||
Parse eine URL-Zeichenfolge, um alle verschiedenen Teile (Protokoll,
|
||||
Ursprung, Parameter, Port, Benutzername-Passwort usw.) zu erhalten.
|
||||
iban-validator-and-parser:
|
||||
title: IBAN-Validator und -Parser
|
||||
description: >-
|
||||
Validiere und parse IBAN-Nummern. Überprüfe, ob die IBAN gültig ist, und
|
||||
erhalte das Land, BBAN, ob es sich um eine QR-IBAN handelt und das
|
||||
IBAN-freundliche Format.
|
||||
user-agent-parser:
|
||||
title: User-Agent-Parser
|
||||
description: >-
|
||||
Erkenne und parse Browser, Engine, Betriebssystem, CPU und
|
||||
Gerätetyp/-modell aus einer User-Agent-Zeichenfolge.
|
||||
numeronym-generator:
|
||||
title: Numeronym-Generator
|
||||
description: >-
|
||||
Ein Numeronym ist ein Wort, bei dem eine Zahl verwendet wird, um eine
|
||||
Abkürzung zu bilden. Zum Beispiel ist "i18n" ein Numeronym für
|
||||
"internationalization", wobei 18 für die Anzahl der Buchstaben zwischen
|
||||
dem ersten "i" und dem letzten "n" im Wort steht.
|
||||
case-converter:
|
||||
title: Fall-Konverter
|
||||
description: >-
|
||||
Ändere den Fall eines Strings und wähle zwischen verschiedenen Formaten
|
||||
aus.
|
||||
html-entities:
|
||||
title: HTML-Entity-Escape
|
||||
description: >-
|
||||
Escape oder unescape HTML-Entitäten (ersetze <, >, &, " und ' durch ihre
|
||||
HTML-Version).
|
||||
json-prettify:
|
||||
title: JSON verschönern und formatieren
|
||||
description: Verschönere deinen JSON-String in ein menschenlesbares Format.
|
||||
docker-run-to-docker-compose-converter:
|
||||
title: Docker run zu Docker compose Konverter
|
||||
description: Wandle docker run-Befehle in docker-compose-Dateien um!
|
||||
mac-address-lookup:
|
||||
title: MAC-Adressensuche
|
||||
description: Finde den Anbieter und Hersteller eines Geräts anhand seiner MAC-Adresse.
|
||||
mime-types:
|
||||
title: MIME-Typen
|
||||
description: Konvertiere MIME-Typen in Erweiterungen und umgekehrt.
|
||||
toml-to-json:
|
||||
title: TOML zu JSON
|
||||
description: Parse und konvertiere TOML zu JSON.
|
||||
lorem-ipsum-generator:
|
||||
title: Lorem Ipsum Generator
|
||||
description: >-
|
||||
Lorem Ipsum ist ein Platzhaltertext, der häufig verwendet wird, um die
|
||||
visuelle Form eines Dokuments oder einer Schriftart ohne Verwendung von
|
||||
bedeutendem Inhalt zu demonstrieren.
|
||||
qrcode-generator:
|
||||
title: QR-Code-Generator
|
||||
description: >-
|
||||
Generiere und downloade QR-Codes für eine URL oder einfach einen Text und
|
||||
passe die Hintergrund- und Vordergrundfarben an.
|
||||
wifi-qrcode-generator:
|
||||
title: WLAN-QR-Code-Generator
|
||||
description: >-
|
||||
Generiere und lade QR-Codes für schnelle Verbindungen zu WLAN-Netzwerken
|
||||
herunter.
|
||||
xml-formatter:
|
||||
title: XML-Formatter
|
||||
description: Verschönere deinen XML-String in ein menschenlesbares Format.
|
||||
temperature-converter:
|
||||
title: Temperaturkonverter
|
||||
description: >-
|
||||
Temperaturgradumrechnungen für Kelvin, Celsius, Fahrenheit, Rankine,
|
||||
Delisle, Newton, Réaumur und Rømer.
|
||||
chmod-calculator:
|
||||
title: Chmod-Rechner
|
||||
description: >-
|
||||
Berechne deine Chmod-Berechtigungen und -Befehle mit diesem
|
||||
Online-Chmod-Rechner.
|
||||
rsa-key-pair-generator:
|
||||
title: RSA-Schlüsselpaar-Generator
|
||||
description: Generiere neue zufällige RSA-Private- und Public-Key-PEM-Zertifikate.
|
||||
html-wysiwyg-editor:
|
||||
title: HTML-WYSIWYG-Editor
|
||||
description: >-
|
||||
Online-HTML-Editor mit funktionsreichem WYSIWYG-Editor, erhalte sofort den
|
||||
Quellcode des Inhalts.
|
||||
yaml-to-toml:
|
||||
title: YAML zu TOML
|
||||
description: Parse und konvertiere YAML zu TOML.
|
||||
mac-address-generator:
|
||||
title: MAC-Adressen-Generator
|
||||
description: >-
|
||||
Gebe die Menge und das Präfix ein. MAC-Adressen werden in deiner gewählten
|
||||
Schreibweise (Groß- oder Kleinbuchstaben) generiert.
|
||||
json-diff:
|
||||
title: JSON-Unterschied
|
||||
description: Vergleiche zwei JSON-Objekte und erhalte die Unterschiede zwischen ihnen.
|
||||
jwt-parser:
|
||||
title: JWT-Parser
|
||||
description: >-
|
||||
Parse und decodiere deinen JSON-Web-Token (JWT) und zeige dessen Inhalt
|
||||
an.
|
||||
date-converter:
|
||||
title: Datum-Uhrzeit-Konverter
|
||||
description: Konvertiere Datum und Uhrzeit in verschiedene Formate.
|
||||
phone-parser-and-formatter:
|
||||
title: Telefonnummer-Parser und -Formatter
|
||||
description: >-
|
||||
Parse, validiere und formatiere Telefonnummern. Erhalte Informationen zur
|
||||
Telefonnummer, wie z. B. die Landesvorwahl, den Typ usw.
|
||||
ipv4-subnet-calculator:
|
||||
title: IPv4-Subnetzrechner
|
||||
description: >-
|
||||
Parse deine IPv4-CIDR-Blöcke und erhalte alle Informationen, die du über
|
||||
dein Subnetz benötigst.
|
||||
og-meta-generator:
|
||||
title: Open Graph Meta-Generator
|
||||
description: Generiere Open Graph- und Social-HTML-Metatags für deine Website.
|
||||
ipv6-ula-generator:
|
||||
title: IPv6-ULA-Generator
|
||||
description: >-
|
||||
Generiere deine eigenen lokalen, nicht routbaren IP-Adressen in deinem
|
||||
Netzwerk gemäß RFC4193.
|
||||
hash-text:
|
||||
title: Text hashen
|
||||
description: >-
|
||||
Hashe einen Text-String mit der von dir benötigten Funktion: MD5, SHA1,
|
||||
SHA256, SHA224, SHA512, SHA384, SHA3 oder RIPEMD160
|
||||
json-to-toml:
|
||||
title: JSON zu TOML
|
||||
description: Parse und konvertiere JSON zu TOML.
|
||||
device-information:
|
||||
title: Geräteinformationen
|
||||
description: >-
|
||||
Informationen zu deinem aktuellen Gerät (Bildschirmgröße, Pixelverhältnis,
|
||||
Benutzeragent, ...) erhalten.
|
||||
pdf-signature-checker:
|
||||
title: PDF-Signaturprüfer
|
||||
description: >-
|
||||
Überprüfe die Signaturen einer PDF-Datei. Eine signierte PDF-Datei enthält
|
||||
eine oder mehrere Signaturen, die verwendet werden können, um
|
||||
festzustellen, ob der Inhalt der Datei seit dem Zeitpunkt der Signierung
|
||||
geändert wurde.
|
||||
json-minify:
|
||||
title: JSON minifizieren
|
||||
description: >-
|
||||
Minifiziere und komprimiere dein JSON, indem unnötige Leerzeichen entfernt
|
||||
werden.
|
||||
ulid-generator:
|
||||
title: ULID-Generator
|
||||
description: >-
|
||||
Generiere zufällige Universally Unique Lexicographically Sortable
|
||||
Identifier (ULID).
|
||||
string-obfuscator:
|
||||
title: String-Verschleierer
|
||||
description: >-
|
||||
Verschleiere einen String (wie ein Secret, eine IBAN oder ein Token), um
|
||||
ihn weitergeben zu können und identifizierbar zu machen, ohne seinen
|
||||
Inhalt preiszugeben.
|
||||
base-converter:
|
||||
title: Ganzzahl-Basiskonverter
|
||||
description: >-
|
||||
Konvertiere Zahlen zwischen verschiedenen Basen (Dezimal, Hexadezimal,
|
||||
Binär, Oktal, Base64, ...).
|
||||
yaml-to-json-converter:
|
||||
title: YAML zu JSON
|
||||
description: Konvertiere YAML einfach in JSON mit diesem Live-Online-Konverter.
|
||||
uuid-generator:
|
||||
title: UUID-Generator
|
||||
description: >-
|
||||
Ein Universally Unique Identifier (UUID) ist eine 128-Bit-Nummer, die zur
|
||||
Identifizierung von Informationen in Computersystemen verwendet wird. Die
|
||||
Anzahl der möglichen UUIDs beträgt 16^32, was 2^128 oder etwa 3,4x10^38
|
||||
entspricht (was ziemlich viel ist!).
|
||||
ipv4-address-converter:
|
||||
title: IPv4-Adresskonverter
|
||||
description: >-
|
||||
Konvertiere eine IP-Adresse in Dezimal, Binär, Hexadezimal oder sogar in
|
||||
IPv6.
|
||||
text-statistics:
|
||||
title: Textstatistiken
|
||||
description: >-
|
||||
Informationen zu einem Text erhalten, wie die Anzahl der Zeichen, die
|
||||
Anzahl der Wörter, die Größe usw.
|
||||
text-to-nato-alphabet:
|
||||
title: Text zu NATO-Alphabet
|
||||
description: >-
|
||||
Wandle Text in das NATO-Phonetik-Alphabet für die mündliche Übermittlung
|
||||
um.
|
||||
basic-auth-generator:
|
||||
title: Basic-Auth-Generator
|
||||
description: >-
|
||||
Generiere einen Base64-Basic-Auth-Header aus einem Benutzernamen und einem
|
||||
Passwort.
|
||||
text-to-unicode:
|
||||
title: Text zu Unicode
|
||||
description: Parse und konvertiere Text in Unicode und umgekehrt.
|
||||
ipv4-range-expander:
|
||||
title: IPv4-Bereichserweiterer
|
||||
description: >-
|
||||
Bei Angabe einer Start- und End-IPv4-Adresse berechnet dieses Tool ein
|
||||
gültiges IPv4-Netzwerk mit seiner CIDR-Notation.
|
||||
text-diff:
|
||||
title: Textunterschied
|
||||
description: Vergleiche zwei Texte und sieh die Unterschiede zwischen ihnen.
|
||||
otp-generator:
|
||||
title: OTP-Code-Generator
|
||||
description: >-
|
||||
Generiere und validiere zeitbasierte OTPs (Einmalpasswörter) für
|
||||
Multi-Faktor-Authentifizierung.
|
||||
url-encoder:
|
||||
title: Kodieren/Decodieren von URL-formatierten Zeichenfolgen
|
||||
description: >-
|
||||
Kodiere zum URL-kodierten Format (auch als "prozentkodiert" bekannt) oder
|
||||
decodiere es.
|
||||
text-to-binary:
|
||||
title: Text zu ASCII-Binär
|
||||
description: Konvertiere Text in seine ASCII-Binärrepräsentation und umgekehrt.
|
||||
+45
-45
@@ -7,7 +7,7 @@ home:
|
||||
toggleMenu: 'Toggle menu'
|
||||
home: Home
|
||||
uiLib: 'UI Lib'
|
||||
support: 'Support IT Tools development'
|
||||
support: 'Support IT-Tools development'
|
||||
buyMeACoffee: 'Buy me a coffee'
|
||||
follow:
|
||||
title: 'You like it-tools?'
|
||||
@@ -15,7 +15,7 @@ home:
|
||||
githubRepository: 'IT-Tools GitHub repository'
|
||||
p2: 'or follow us on'
|
||||
twitterAccount: 'IT-Tools Twitter account'
|
||||
thankYou: 'Thank you !'
|
||||
thankYou: 'Thank you!'
|
||||
nav:
|
||||
github: 'GitHub repository'
|
||||
githubRepository: 'IT-Tools GitHub repository'
|
||||
@@ -72,7 +72,7 @@ tools:
|
||||
|
||||
password-strength-analyser:
|
||||
title: Password strength analyser
|
||||
description: Discover the strength of your password with this client side only password strength analyser and crack time estimation tool.
|
||||
description: Discover the strength of your password with this client-side-only password strength analyser and crack time estimation tool.
|
||||
|
||||
chronometer:
|
||||
title: Chronometer
|
||||
@@ -98,7 +98,7 @@ tools:
|
||||
|
||||
svg-placeholder-generator:
|
||||
title: SVG placeholder generator
|
||||
description: Generate svg images to use as placeholder in your applications.
|
||||
description: Generate svg images to use as a placeholder in your applications.
|
||||
|
||||
json-to-csv:
|
||||
title: JSON to CSV
|
||||
@@ -126,11 +126,11 @@ tools:
|
||||
|
||||
crontab-generator:
|
||||
title: Crontab generator
|
||||
description: Validate and generate crontab and get the human readable description of the cron schedule.
|
||||
description: Validate and generate crontab and get the human-readable description of the cron schedule.
|
||||
|
||||
http-status-codes:
|
||||
title: HTTP status codes
|
||||
description: The list of all HTTP status codes their name and their meaning.
|
||||
description: The list of all HTTP status codes, their name, and their meaning.
|
||||
|
||||
sql-prettify:
|
||||
title: SQL prettify and format
|
||||
@@ -142,7 +142,7 @@ tools:
|
||||
|
||||
git-memo:
|
||||
title: Git cheatsheet
|
||||
description: Git is a decentralized version management software. With this cheatsheet you will have a quick access to the most common git commands.
|
||||
description: Git is a decentralized version management software. With this cheatsheet, you will have quick access to the most common git commands.
|
||||
|
||||
slugify-string:
|
||||
title: Slugify string
|
||||
@@ -150,7 +150,7 @@ tools:
|
||||
|
||||
encryption:
|
||||
title: Encrypt / decrypt text
|
||||
description: Encrypt and decrypt text clear text using crypto algorithm like AES, TripleDES, Rabbit or RC4.
|
||||
description: Encrypt clear text and decrypt ciphertext using crypto algorithms like AES, TripleDES, Rabbit or RC4.
|
||||
|
||||
random-port-generator:
|
||||
title: Random port generator
|
||||
@@ -158,11 +158,11 @@ tools:
|
||||
|
||||
yaml-prettify:
|
||||
title: YAML prettify and format
|
||||
description: Prettify your YAML string to a human friendly readable format.
|
||||
description: Prettify your YAML string into a friendly, human-readable format.
|
||||
|
||||
eta-calculator:
|
||||
title: ETA calculator
|
||||
description: An ETA (Estimated Time of Arrival) calculator to know the approximate end time of a task, for example the moment of ending of a download.
|
||||
description: An ETA (Estimated Time of Arrival) calculator to determine the approximate end time of a task, for example, the end time and duration of a file download.
|
||||
|
||||
roman-numeral-converter:
|
||||
title: Roman numeral converter
|
||||
@@ -174,11 +174,11 @@ tools:
|
||||
|
||||
bip39-generator:
|
||||
title: BIP39 passphrase generator
|
||||
description: Generate BIP39 passphrase from existing or random mnemonic, or get the mnemonic from the passphrase.
|
||||
description: Generate a BIP39 passphrase from an existing or random mnemonic, or get the mnemonic from the passphrase.
|
||||
|
||||
base64-file-converter:
|
||||
title: Base64 file converter
|
||||
description: Convert string, files or images into a it\'s base64 representation.
|
||||
description: Convert a string, file, or image into its base64 representation.
|
||||
|
||||
list-converter:
|
||||
title: List converter
|
||||
@@ -186,7 +186,7 @@ tools:
|
||||
|
||||
base64-string-converter:
|
||||
title: Base64 string encoder/decoder
|
||||
description: Simply encode and decode string into a their base64 representation.
|
||||
description: Simply encode and decode strings into their base64 representation.
|
||||
|
||||
toml-to-yaml:
|
||||
title: TOML to YAML
|
||||
@@ -198,15 +198,15 @@ tools:
|
||||
|
||||
json-to-yaml-converter:
|
||||
title: JSON to YAML converter
|
||||
description: Simply convert JSON to YAML with this live online converter.
|
||||
description: Simply convert JSON to YAML with this online live converter.
|
||||
|
||||
url-parser:
|
||||
title: Url parser
|
||||
description: Parse an url string to get all the different parts (protocol, origin, params, port, username-password, ...)
|
||||
title: URL parser
|
||||
description: Parse a URL into its separate constituent parts (protocol, origin, params, port, username-password, ...)
|
||||
|
||||
iban-validator-and-parser:
|
||||
title: IBAN validator and parser
|
||||
description: Validate and parse IBAN numbers. Check if IBAN is valid and get the country, BBAN, if it is a QR-IBAN and the IBAN friendly format.
|
||||
description: Validate and parse IBAN numbers. Check if an IBAN is valid and get the country, BBAN, if it is a QR-IBAN and the IBAN friendly format.
|
||||
|
||||
user-agent-parser:
|
||||
title: User-agent parser
|
||||
@@ -218,27 +218,27 @@ tools:
|
||||
|
||||
case-converter:
|
||||
title: Case converter
|
||||
description: Change the case of a string and chose between different formats
|
||||
description: Transform the case of a string and choose between different formats
|
||||
|
||||
html-entities:
|
||||
title: Escape html entities
|
||||
description: Escape or unescape html entities (replace <,>, &, " and \' to their html version)
|
||||
title: Escape HTML entities
|
||||
description: Escape or unescape HTML entities (replace characters like <,>, &, " and \' with their HTML version)
|
||||
|
||||
json-prettify:
|
||||
title: JSON prettify and format
|
||||
description: Prettify your JSON string to a human friendly readable format.
|
||||
description: Prettify your JSON string into a friendly, human-readable format.
|
||||
|
||||
docker-run-to-docker-compose-converter:
|
||||
title: Docker run to Docker compose converter
|
||||
description: Turns docker run commands into docker-compose files!
|
||||
description: Transforms "docker run" commands into docker-compose files!
|
||||
|
||||
mac-address-lookup:
|
||||
title: MAC address lookup
|
||||
description: Find the vendor and manufacturer of a device by its MAC address.
|
||||
|
||||
mime-types:
|
||||
title: Mime types
|
||||
description: Convert mime types to extensions and vice-versa.
|
||||
title: MIME types
|
||||
description: Convert MIME types to file extensions and vice-versa.
|
||||
|
||||
toml-to-json:
|
||||
title: TOML to JSON
|
||||
@@ -250,19 +250,19 @@ tools:
|
||||
|
||||
qrcode-generator:
|
||||
title: QR Code generator
|
||||
description: Generate and download QR-code for an url or just a text and customize the background and foreground colors.
|
||||
description: Generate and download a QR code for a URL (or just plain text), and customize the background and foreground colors.
|
||||
|
||||
wifi-qrcode-generator:
|
||||
title: WiFi QR Code generator
|
||||
description: Generate and download QR-codes for quick connections to WiFi networks.
|
||||
description: Generate and download QR codes for quick connections to WiFi networks.
|
||||
|
||||
xml-formatter:
|
||||
title: XML formatter
|
||||
description: Prettify your XML string to a human friendly readable format.
|
||||
description: Prettify your XML string into a friendly, human-readable format.
|
||||
|
||||
temperature-converter:
|
||||
title: Temperature converter
|
||||
description: Temperature degrees conversions for Kelvin, Celsius, Fahrenheit, Rankine, Delisle, Newton, Réaumur and Rømer.
|
||||
description: Degrees temperature conversions for Kelvin, Celsius, Fahrenheit, Rankine, Delisle, Newton, Réaumur, and Rømer.
|
||||
|
||||
chmod-calculator:
|
||||
title: Chmod calculator
|
||||
@@ -270,11 +270,11 @@ tools:
|
||||
|
||||
rsa-key-pair-generator:
|
||||
title: RSA key pair generator
|
||||
description: Generate new random RSA private and public key pem certificates.
|
||||
description: Generate a new random RSA private and public pem certificate key pair.
|
||||
|
||||
html-wysiwyg-editor:
|
||||
title: HTML WYSIWYG editor
|
||||
description: Online HTML editor with feature-rich WYSIWYG editor, get the source code of the content immediately.
|
||||
description: Online, feature-rich WYSIWYG HTML editor which generates the source code of the content immediately.
|
||||
|
||||
yaml-to-toml:
|
||||
title: YAML to TOML
|
||||
@@ -302,15 +302,15 @@ tools:
|
||||
|
||||
ipv4-subnet-calculator:
|
||||
title: IPv4 subnet calculator
|
||||
description: Parse your IPv4 CIDR blocks and get all the info you need about your sub network.
|
||||
description: Parse your IPv4 CIDR blocks and get all the info you need about your subnet.
|
||||
|
||||
og-meta-generator:
|
||||
title: Open graph meta generator
|
||||
description: Generate open-graph and socials html meta tags for your website.
|
||||
description: Generate open-graph and socials HTML meta tags for your website.
|
||||
|
||||
ipv6-ula-generator:
|
||||
title: IPv6 ULA generator
|
||||
description: Generate your own local, non-routable IP addresses on your network according to RFC4193.
|
||||
description: Generate your own local, non-routable IP addresses for your network according to RFC4193.
|
||||
|
||||
hash-text:
|
||||
title: Hash text
|
||||
@@ -330,7 +330,7 @@ tools:
|
||||
|
||||
json-minify:
|
||||
title: JSON minify
|
||||
description: Minify and compress your JSON by removing unnecessary white spaces.
|
||||
description: Minify and compress your JSON by removing unnecessary whitespace.
|
||||
|
||||
ulid-generator:
|
||||
title: ULID generator
|
||||
@@ -342,31 +342,31 @@ tools:
|
||||
|
||||
base-converter:
|
||||
title: Integer base converter
|
||||
description: Convert number between different bases (decimal, hexadecimal, binary, octal, base64, ...)
|
||||
description: Convert a number between different bases (decimal, hexadecimal, binary, octal, base64, ...)
|
||||
|
||||
yaml-to-json-converter:
|
||||
title: YAML to JSON converter
|
||||
description: Simply convert YAML to JSON with this live online converter.
|
||||
description: Simply convert YAML to JSON with this online live converter.
|
||||
|
||||
uuid-generator:
|
||||
title: UUIDs generator
|
||||
description: A Universally Unique Identifier (UUID) is a 128-bit number used to identify information in computer systems. The number of possible UUIDs is 16^32, which is 2^128 or about 3.4x10^38 (which is a lot!).
|
||||
|
||||
ipv4-address-converter:
|
||||
title: Ipv4 address converter
|
||||
description: Convert an ip address into decimal, binary, hexadecimal or event in ipv6
|
||||
title: IPv4 address converter
|
||||
description: Convert an IP address into decimal, binary, hexadecimal, or even an IPv6 representation of it.
|
||||
|
||||
text-statistics:
|
||||
title: Text statistics
|
||||
description: Get information about a text, the amount of characters, the amount of words, it\'s size, ...
|
||||
description: Get information about a text, the number of characters, the number of words, its size in bytes, ...
|
||||
|
||||
text-to-nato-alphabet:
|
||||
title: Text to NATO alphabet
|
||||
description: Transform text into NATO phonetic alphabet for oral transmission.
|
||||
description: Transform text into the NATO phonetic alphabet for oral transmission.
|
||||
|
||||
basic-auth-generator:
|
||||
title: Basic auth generator
|
||||
description: Generate a base64 basic auth header from an username and a password.
|
||||
description: Generate a base64 basic auth header from a username and password.
|
||||
|
||||
text-to-unicode:
|
||||
title: Text to Unicode
|
||||
@@ -374,7 +374,7 @@ tools:
|
||||
|
||||
ipv4-range-expander:
|
||||
title: IPv4 range expander
|
||||
description: Given a start and an end IPv4 address this tool calculates a valid IPv4 network with its CIDR notation.
|
||||
description: Given a start and an end IPv4 address, this tool calculates a valid IPv4 subnet along with its CIDR notation.
|
||||
|
||||
text-diff:
|
||||
title: Text diff
|
||||
@@ -385,9 +385,9 @@ tools:
|
||||
description: Generate and validate time-based OTP (one time password) for multi-factor authentication.
|
||||
|
||||
url-encoder:
|
||||
title: Encode/decode url formatted strings
|
||||
description: Encode to url-encoded format (also known as "percent-encoded") or decode from it.
|
||||
title: Encode/decode URL-formatted strings
|
||||
description: Encode text to URL-encoded format (also known as "percent-encoded"), or decode from it.
|
||||
|
||||
text-to-binary:
|
||||
title: Text to ASCII binary
|
||||
description: Convert text to its ASCII binary representation and vice versa.
|
||||
description: Convert text to its ASCII binary representation and vice-versa.
|
||||
+17
-2
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "it-tools",
|
||||
"version": "2023.12.21-5ed3693",
|
||||
"version": "2024.5.13-a0bc346",
|
||||
"description": "Collection of handy online tools for developers, with great UX. ",
|
||||
"keywords": [
|
||||
"productivity",
|
||||
@@ -37,10 +37,13 @@
|
||||
"dependencies": {
|
||||
"@it-tools/bip39": "^0.0.4",
|
||||
"@it-tools/oggen": "^1.3.0",
|
||||
"@regexper/render": "^1.0.0",
|
||||
"@sindresorhus/slugify": "^2.2.1",
|
||||
"@tiptap/pm": "2.1.6",
|
||||
"@tiptap/starter-kit": "2.1.6",
|
||||
"@tiptap/vue-3": "2.0.3",
|
||||
"@types/figlet": "^1.5.8",
|
||||
"@types/markdown-it": "^13.0.7",
|
||||
"@vicons/material": "^0.12.0",
|
||||
"@vicons/tabler": "^0.12.0",
|
||||
"@vueuse/core": "^10.3.0",
|
||||
@@ -56,16 +59,20 @@
|
||||
"crypto-js": "^4.1.1",
|
||||
"date-fns": "^2.29.3",
|
||||
"dompurify": "^3.0.6",
|
||||
"email-normalizer": "^1.0.0",
|
||||
"emojilib": "^3.0.10",
|
||||
"figlet": "^1.7.0",
|
||||
"figue": "^1.2.0",
|
||||
"fuse.js": "^6.6.2",
|
||||
"highlight.js": "^11.7.0",
|
||||
"iarna-toml-esm": "^3.0.5",
|
||||
"ibantools": "^4.3.3",
|
||||
"js-base64": "^3.7.7",
|
||||
"json5": "^2.2.3",
|
||||
"jwt-decode": "^3.1.2",
|
||||
"libphonenumber-js": "^1.10.28",
|
||||
"lodash": "^4.17.21",
|
||||
"markdown-it": "^14.0.0",
|
||||
"marked": "^10.0.0",
|
||||
"mathjs": "^11.9.1",
|
||||
"mime-types": "^2.1.35",
|
||||
@@ -73,12 +80,15 @@
|
||||
"naive-ui": "^2.35.0",
|
||||
"netmask": "^2.0.2",
|
||||
"node-forge": "^1.3.1",
|
||||
"openpgp": "^5.11.1",
|
||||
"oui-data": "^1.0.10",
|
||||
"pdf-signature-reader": "^1.4.2",
|
||||
"pinia": "^2.0.34",
|
||||
"plausible-tracker": "^0.3.8",
|
||||
"qrcode": "^1.5.1",
|
||||
"randexp": "^0.5.3",
|
||||
"sql-formatter": "^13.0.0",
|
||||
"sshpk": "^1.18.0",
|
||||
"ua-parser-js": "^1.0.35",
|
||||
"ulid": "^2.3.0",
|
||||
"unicode-emoji-json": "^0.4.0",
|
||||
@@ -87,8 +97,10 @@
|
||||
"vue": "^3.3.4",
|
||||
"vue-i18n": "^9.9.1",
|
||||
"vue-router": "^4.1.6",
|
||||
"vue-shadow-dom": "^4.2.0",
|
||||
"vue-tsc": "^1.8.1",
|
||||
"xml-formatter": "^3.3.2",
|
||||
"xml-js": "^1.6.11",
|
||||
"yaml": "^2.2.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
@@ -108,6 +120,7 @@
|
||||
"@types/node": "^18.15.11",
|
||||
"@types/node-forge": "^1.3.2",
|
||||
"@types/qrcode": "^1.5.0",
|
||||
"@types/sshpk": "^1.17.4",
|
||||
"@types/ua-parser-js": "^0.7.36",
|
||||
"@types/uuid": "^9.0.0",
|
||||
"@unocss/eslint-config": "^0.57.0",
|
||||
@@ -129,11 +142,13 @@
|
||||
"unplugin-icons": "^0.17.0",
|
||||
"unplugin-vue-components": "^0.25.0",
|
||||
"vite": "^4.4.9",
|
||||
"vite-plugin-node-polyfills": "^0.21.0",
|
||||
"vite-plugin-pwa": "^0.16.0",
|
||||
"vite-plugin-vue-markdown": "^0.23.5",
|
||||
"vite-svg-loader": "^4.0.0",
|
||||
"vitest": "^0.34.0",
|
||||
"workbox-window": "^7.0.0",
|
||||
"zx": "^7.2.1"
|
||||
}
|
||||
},
|
||||
"packageManager": "pnpm@8.15.3"
|
||||
}
|
||||
@@ -9,7 +9,7 @@ const useWebServer = process.env.NO_WEB_SERVER !== 'true';
|
||||
*/
|
||||
export default defineConfig({
|
||||
testDir: './src',
|
||||
testMatch: /.*\.e2e\.(spec\.)?ts/,
|
||||
testMatch: /\.e2e\.(spec\.)?ts$/,
|
||||
/* Run tests in files in parallel */
|
||||
fullyParallel: true,
|
||||
/* Fail the build on CI if you accidentally left test.only in the source code. */
|
||||
@@ -57,7 +57,7 @@ export default defineConfig({
|
||||
&& {
|
||||
webServer: {
|
||||
command: 'npm run preview',
|
||||
url: 'http://127.0.0.1:5050',
|
||||
url: 'http://localhost:5050',
|
||||
reuseExistingServer: !isCI,
|
||||
},
|
||||
}
|
||||
|
||||
Generated
+870
-14
File diff suppressed because it is too large.
Load diff
@@ -48,7 +48,7 @@ const output = computed(() => transformer.value(input.value));
|
||||
monospace
|
||||
/>
|
||||
|
||||
<div>
|
||||
<div overflow-auto>
|
||||
<div mb-5px>
|
||||
{{ outputLabel }}
|
||||
</div>
|
||||
|
||||
@@ -2,7 +2,12 @@
|
||||
import { useVModel } from '@vueuse/core';
|
||||
import { useCopy } from '@/composable/copy';
|
||||
|
||||
const props = defineProps<{ value: string }>();
|
||||
const props = defineProps<{
|
||||
value: string
|
||||
multiline?: boolean
|
||||
rows?: number | string
|
||||
autosize?: boolean
|
||||
}>();
|
||||
const emit = defineEmits(['update:value']);
|
||||
|
||||
const value = useVModel(props, 'value', emit);
|
||||
@@ -11,7 +16,12 @@ const tooltipText = computed(() => isJustCopied.value ? 'Copied!' : 'Copy to cli
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<c-input-text v-model:value="value">
|
||||
<c-input-text
|
||||
v-model:value="value"
|
||||
:multiline="multiline"
|
||||
:rows="rows"
|
||||
:autosize="autosize"
|
||||
>
|
||||
<template #suffix>
|
||||
<c-tooltip :tooltip="tooltipText">
|
||||
<c-button circle variant="text" size="small" @click="copy()">
|
||||
|
||||
@@ -7,6 +7,7 @@ import sqlHljs from 'highlight.js/lib/languages/sql';
|
||||
import xmlHljs from 'highlight.js/lib/languages/xml';
|
||||
import yamlHljs from 'highlight.js/lib/languages/yaml';
|
||||
import iniHljs from 'highlight.js/lib/languages/ini';
|
||||
import markdownHljs from 'highlight.js/lib/languages/markdown';
|
||||
import { useCopy } from '@/composable/copy';
|
||||
|
||||
const props = withDefaults(
|
||||
@@ -16,6 +17,7 @@ const props = withDefaults(
|
||||
language?: string
|
||||
copyPlacement?: 'top-right' | 'bottom-right' | 'outside' | 'none'
|
||||
copyMessage?: string
|
||||
wordWrap?: boolean
|
||||
}>(),
|
||||
{
|
||||
followHeightOf: null,
|
||||
@@ -30,6 +32,7 @@ hljs.registerLanguage('html', xmlHljs);
|
||||
hljs.registerLanguage('xml', xmlHljs);
|
||||
hljs.registerLanguage('yaml', yamlHljs);
|
||||
hljs.registerLanguage('toml', iniHljs);
|
||||
hljs.registerLanguage('markdown', markdownHljs);
|
||||
|
||||
const { value, language, followHeightOf, copyPlacement, copyMessage } = toRefs(props);
|
||||
const { height } = followHeightOf.value ? useElementSize(followHeightOf) : { height: ref(null) };
|
||||
@@ -47,7 +50,7 @@ const tooltipText = computed(() => isJustCopied.value ? 'Copied!' : copyMessage.
|
||||
:style="height ? `min-height: ${height - 40 /* card padding */ + 10 /* negative margin compensation */}px` : ''"
|
||||
>
|
||||
<n-config-provider :hljs="hljs">
|
||||
<n-code :code="value" :language="language" :trim="false" data-test-id="area-content" />
|
||||
<n-code :code="value" :language="language" :word-wrap="wordWrap" :trim="false" data-test-id="area-content" />
|
||||
</n-config-provider>
|
||||
</n-scrollbar>
|
||||
<div absolute right-10px top-10px>
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
import _ from 'lodash';
|
||||
|
||||
function useDebouncedRef<T>(initialValue: T, delay: number, immediate: boolean = false) {
|
||||
const state = ref(initialValue);
|
||||
const debouncedRef = customRef((track, trigger) => ({
|
||||
get() {
|
||||
track();
|
||||
return state.value;
|
||||
},
|
||||
set: _.debounce(
|
||||
(value) => {
|
||||
state.value = value;
|
||||
trigger();
|
||||
},
|
||||
delay,
|
||||
{ leading: immediate },
|
||||
),
|
||||
}));
|
||||
return debouncedRef;
|
||||
}
|
||||
export default useDebouncedRef;
|
||||
@@ -1,8 +1,14 @@
|
||||
import { extension as getExtensionFromMime } from 'mime-types';
|
||||
import type { Ref } from 'vue';
|
||||
import { extension as getExtensionFromMimeType, extension as getMimeTypeFromExtension } from 'mime-types';
|
||||
import type { MaybeRef, Ref } from 'vue';
|
||||
import _ from 'lodash';
|
||||
import { get } from '@vueuse/core';
|
||||
|
||||
export { getMimeTypeFromBase64, useDownloadFileFromBase64 };
|
||||
export {
|
||||
getMimeTypeFromBase64,
|
||||
getMimeTypeFromExtension, getExtensionFromMimeType,
|
||||
useDownloadFileFromBase64, useDownloadFileFromBase64Refs,
|
||||
previewImageFromBase64,
|
||||
};
|
||||
|
||||
const commonMimeTypesSignatures = {
|
||||
'JVBERi0': 'application/pdf',
|
||||
@@ -36,30 +42,78 @@ function getFileExtensionFromMimeType({
|
||||
defaultExtension?: string
|
||||
}) {
|
||||
if (mimeType) {
|
||||
return getExtensionFromMime(mimeType) ?? defaultExtension;
|
||||
return getExtensionFromMimeType(mimeType) ?? defaultExtension;
|
||||
}
|
||||
|
||||
return defaultExtension;
|
||||
}
|
||||
|
||||
function useDownloadFileFromBase64({ source, filename }: { source: Ref<string>; filename?: string }) {
|
||||
function downloadFromBase64({ sourceValue, filename, extension, fileMimeType }:
|
||||
{ sourceValue: string; filename?: string; extension?: string; fileMimeType?: string }) {
|
||||
if (sourceValue === '') {
|
||||
throw new Error('Base64 string is empty');
|
||||
}
|
||||
|
||||
const defaultExtension = extension ?? 'txt';
|
||||
const { mimeType } = getMimeTypeFromBase64({ base64String: sourceValue });
|
||||
let base64String = sourceValue;
|
||||
if (!mimeType) {
|
||||
const targetMimeType = fileMimeType ?? getMimeTypeFromExtension(defaultExtension);
|
||||
base64String = `data:${targetMimeType};base64,${sourceValue}`;
|
||||
}
|
||||
|
||||
const cleanExtension = extension ?? getFileExtensionFromMimeType(
|
||||
{ mimeType, defaultExtension });
|
||||
let cleanFileName = filename ?? `file.${cleanExtension}`;
|
||||
if (extension && !cleanFileName.endsWith(`.${extension}`)) {
|
||||
cleanFileName = `${cleanFileName}.${cleanExtension}`;
|
||||
}
|
||||
|
||||
const a = document.createElement('a');
|
||||
a.href = base64String;
|
||||
a.download = cleanFileName;
|
||||
a.click();
|
||||
}
|
||||
|
||||
function useDownloadFileFromBase64(
|
||||
{ source, filename, extension }:
|
||||
{ source: MaybeRef<string>; filename?: MaybeRef<string>; extension?: MaybeRef<string> }) {
|
||||
return {
|
||||
download() {
|
||||
if (source.value === '') {
|
||||
throw new Error('Base64 string is empty');
|
||||
}
|
||||
|
||||
const { mimeType } = getMimeTypeFromBase64({ base64String: source.value });
|
||||
const base64String = mimeType
|
||||
? source.value
|
||||
: `data:text/plain;base64,${source.value}`;
|
||||
|
||||
const cleanFileName = filename ?? `file.${getFileExtensionFromMimeType({ mimeType })}`;
|
||||
|
||||
const a = document.createElement('a');
|
||||
a.href = base64String;
|
||||
a.download = cleanFileName;
|
||||
a.click();
|
||||
downloadFromBase64({ sourceValue: get(source), filename: get(filename), extension: get(extension) });
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
function previewImageFromBase64(base64String: string): HTMLImageElement {
|
||||
if (base64String === '') {
|
||||
throw new Error('Base64 string is empty');
|
||||
}
|
||||
|
||||
const img = document.createElement('img');
|
||||
img.src = base64String;
|
||||
|
||||
const container = document.createElement('div');
|
||||
container.appendChild(img);
|
||||
|
||||
const previewContainer = document.getElementById('previewContainer');
|
||||
if (previewContainer) {
|
||||
previewContainer.innerHTML = '';
|
||||
previewContainer.appendChild(container);
|
||||
}
|
||||
else {
|
||||
throw new Error('Preview container element not found');
|
||||
}
|
||||
|
||||
return img;
|
||||
}
|
||||
|
||||
function useDownloadFileFromBase64Refs(
|
||||
{ source, filename, extension }:
|
||||
{ source: Ref<string>; filename?: Ref<string>; extension?: Ref<string> }) {
|
||||
return {
|
||||
download() {
|
||||
downloadFromBase64({ sourceValue: source.value, filename: filename?.value, extension: extension?.value });
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -1,7 +1,8 @@
|
||||
import { useRouteQuery } from '@vueuse/router';
|
||||
import { computed } from 'vue';
|
||||
import { useStorage } from '@vueuse/core';
|
||||
|
||||
export { useQueryParam };
|
||||
export { useQueryParam, useQueryParamOrStorage };
|
||||
|
||||
const transformers = {
|
||||
number: {
|
||||
@@ -16,6 +17,12 @@ const transformers = {
|
||||
fromQuery: (value: string) => value.toLowerCase() === 'true',
|
||||
toQuery: (value: boolean) => (value ? 'true' : 'false'),
|
||||
},
|
||||
object: {
|
||||
fromQuery: (value: string) => {
|
||||
return JSON.parse(value);
|
||||
},
|
||||
toQuery: (value: object) => JSON.stringify(value),
|
||||
},
|
||||
};
|
||||
|
||||
function useQueryParam<T>({ name, defaultValue }: { name: string; defaultValue: T }) {
|
||||
@@ -33,3 +40,27 @@ function useQueryParam<T>({ name, defaultValue }: { name: string; defaultValue:
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
function useQueryParamOrStorage<T>({ name, storageName, defaultValue }: { name: string; storageName: string; defaultValue: T }) {
|
||||
const type = typeof defaultValue;
|
||||
const transformer = transformers[type as keyof typeof transformers] ?? transformers.string;
|
||||
|
||||
const storageRef = useStorage(storageName, defaultValue);
|
||||
const proxyDefaultValue = transformer.toQuery(defaultValue as never);
|
||||
const proxy = useRouteQuery(name, proxyDefaultValue);
|
||||
|
||||
const r = ref(defaultValue);
|
||||
|
||||
watch(r,
|
||||
(value) => {
|
||||
proxy.value = transformer.toQuery(value as never);
|
||||
storageRef.value = value as never;
|
||||
},
|
||||
{ deep: true });
|
||||
|
||||
r.value = (proxy.value && proxy.value !== proxyDefaultValue
|
||||
? transformer.fromQuery(proxy.value) as unknown as T
|
||||
: storageRef.value as T) as never;
|
||||
|
||||
return r;
|
||||
}
|
||||
@@ -3,9 +3,11 @@ import _ from 'lodash';
|
||||
import { type Ref, reactive, watch } from 'vue';
|
||||
|
||||
type ValidatorReturnType = unknown;
|
||||
type GetErrorMessageReturnType = string;
|
||||
|
||||
export interface UseValidationRule<T> {
|
||||
validator: (value: T) => ValidatorReturnType
|
||||
getErrorMessage?: (value: T) => GetErrorMessageReturnType
|
||||
message: string
|
||||
}
|
||||
|
||||
@@ -24,6 +26,15 @@ export function isFalsyOrHasThrown(cb: () => ValidatorReturnType): boolean {
|
||||
}
|
||||
}
|
||||
|
||||
export function getErrorMessageOrThrown(cb: () => GetErrorMessageReturnType): string {
|
||||
try {
|
||||
return cb() || '';
|
||||
}
|
||||
catch (e: any) {
|
||||
return e.toString();
|
||||
}
|
||||
}
|
||||
|
||||
export interface ValidationAttrs {
|
||||
feedback: string
|
||||
validationStatus: string | undefined
|
||||
@@ -61,7 +72,13 @@ export function useValidation<T>({
|
||||
|
||||
for (const rule of get(rules)) {
|
||||
if (isFalsyOrHasThrown(() => rule.validator(source.value))) {
|
||||
state.message = rule.message;
|
||||
if (rule.getErrorMessage) {
|
||||
const getErrorMessage = rule.getErrorMessage;
|
||||
state.message = rule.message.replace('{0}', getErrorMessageOrThrown(() => getErrorMessage(source.value)));
|
||||
}
|
||||
else {
|
||||
state.message = rule.message;
|
||||
}
|
||||
state.status = 'error';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ import { createPinia } from 'pinia';
|
||||
import { createHead } from '@vueuse/head';
|
||||
|
||||
import { registerSW } from 'virtual:pwa-register';
|
||||
import shadow from 'vue-shadow-dom';
|
||||
import { plausible } from './plugins/plausible.plugin';
|
||||
|
||||
import 'virtual:uno.css';
|
||||
@@ -23,5 +24,6 @@ app.use(i18nPlugin);
|
||||
app.use(router);
|
||||
app.use(naive);
|
||||
app.use(plausible);
|
||||
app.use(shadow);
|
||||
|
||||
app.mount('#app');
|
||||
@@ -3,6 +3,7 @@ const { availableLocales, locale } = useI18n();
|
||||
|
||||
const localesLong: Record<string, string> = {
|
||||
en: 'English',
|
||||
de: 'Deutsch',
|
||||
es: 'Español',
|
||||
fr: 'Français',
|
||||
pt: 'Português',
|
||||
|
||||
@@ -0,0 +1,93 @@
|
||||
<script setup lang="ts">
|
||||
import figlet from 'figlet';
|
||||
import TextareaCopyable from '@/components/TextareaCopyable.vue';
|
||||
|
||||
const input = ref('Ascii ART');
|
||||
const font = useStorage('ascii-text-drawer:font', 'Standard');
|
||||
const width = useStorage('ascii-text-drawer:width', 80);
|
||||
const output = ref('');
|
||||
const errored = ref(false);
|
||||
const processing = ref(false);
|
||||
|
||||
figlet.defaults({ fontPath: '//unpkg.com/figlet@1.6.0/fonts/' });
|
||||
|
||||
watchEffect(async () => {
|
||||
processing.value = true;
|
||||
try {
|
||||
const options: figlet.Options = {
|
||||
font: font.value as figlet.Fonts,
|
||||
width: width.value,
|
||||
whitespaceBreak: true,
|
||||
};
|
||||
output.value = await (new Promise<string>((resolve, reject) =>
|
||||
figlet.text(input.value, options,
|
||||
(err, text) => {
|
||||
if (err) {
|
||||
reject(err);
|
||||
return;
|
||||
}
|
||||
|
||||
resolve(text ?? '');
|
||||
})));
|
||||
errored.value = false;
|
||||
}
|
||||
catch (e: any) {
|
||||
errored.value = true;
|
||||
}
|
||||
processing.value = false;
|
||||
});
|
||||
|
||||
const fonts = ['1Row', '3-D', '3D Diagonal', '3D-ASCII', '3x5', '4Max', '5 Line Oblique', 'AMC 3 Line', 'AMC 3 Liv1', 'AMC AAA01', 'AMC Neko', 'AMC Razor', 'AMC Razor2', 'AMC Slash', 'AMC Slider', 'AMC Thin', 'AMC Tubes', 'AMC Untitled', 'ANSI Shadow', 'ASCII New Roman', 'Acrobatic', 'Alligator', 'Alligator2', 'Alpha', 'Alphabet', 'Arrows', 'Avatar', 'B1FF', 'B1FF', 'Banner', 'Banner3-D', 'Banner3', 'Banner4', 'Barbwire', 'Basic', 'Bear', 'Bell', 'Benjamin', 'Big Chief', 'Big Money-ne', 'Big Money-nw', 'Big Money-se', 'Big Money-sw', 'Big', 'Bigfig', 'Binary', 'Block', 'Blocks', 'Bloody', 'Bolger', 'Braced', 'Bright', 'Broadway KB', 'Broadway', 'Bubble', 'Bulbhead', 'Caligraphy', 'Caligraphy2', 'Calvin S', 'Cards', 'Catwalk', 'Chiseled', 'Chunky', 'Coinstak', 'Cola', 'Colossal', 'Computer', 'Contessa', 'Contrast', 'Cosmike', 'Crawford', 'Crawford2', 'Crazy', 'Cricket', 'Cursive', 'Cyberlarge', 'Cybermedium', 'Cybersmall', 'Cygnet', 'DANC4', 'DOS Rebel', 'DWhistled', 'Dancing Font', 'Decimal', 'Def Leppard', 'Delta Corps Priest 1', 'Diamond', 'Diet Cola', 'Digital', 'Doh', 'Doom', 'Dot Matrix', 'Double Shorts', 'Double', 'Dr Pepper', 'Efti Chess', 'Efti Font', 'Efti Italic', 'Efti Piti', 'Efti Robot', 'Efti Wall', 'Efti Water', 'Electronic', 'Elite', 'Epic', 'Fender', 'Filter', 'Fire Font-k', 'Fire Font-s', 'Flipped', 'Flower Power', 'Four Tops', 'Fraktur', 'Fun Face', 'Fun Faces', 'Fuzzy', 'Georgi16', 'Georgia11', 'Ghost', 'Ghoulish', 'Glenyn', 'Goofy', 'Gothic', 'Graceful', 'Gradient', 'Graffiti', 'Greek', 'Heart Left', 'Heart Right', 'Henry 3D', 'Hex', 'Hieroglyphs', 'Hollywood', 'Horizontal Left', 'Horizontal Right', 'ICL-1900', 'Impossible', 'Invita', 'Isometric1', 'Isometric2', 'Isometric3', 'Isometric4', 'Italic', 'Ivrit', 'JS Block Letters', 'JS Bracket Letters', 'JS Capital Curves', 'JS Cursive', 'JS Stick Letters', 'Jacky', 'Jazmine', 'Jerusalem', 'Katakana', 'Kban', 'Keyboard', 'Knob', 'Konto Slant', 'Konto', 'LCD', 'Larry 3D 2', 'Larry 3D', 'Lean', 'Letters', 'Lil Devil', 'Line Blocks', 'Linux', 'Lockergnome', 'Madrid', 'Marquee', 'Maxfour', 'Merlin1', 'Merlin2', 'Mike', 'Mini', 'Mirror', 'Mnemonic', 'Modular', 'Morse', 'Morse2', 'Moscow', 'Mshebrew210', 'Muzzle', 'NScript', 'NT Greek', 'NV Script', 'Nancyj-Fancy', 'Nancyj-Improved', 'Nancyj-Underlined', 'Nancyj', 'Nipples', 'O8', 'OS2', 'Octal', 'Ogre', 'Old Banner', 'Patorjk\'s Cheese', 'Patorjk-HeX', 'Pawp', 'Peaks Slant', 'Peaks', 'Pebbles', 'Pepper', 'Poison', 'Puffy', 'Puzzle', 'Pyramid', 'Rammstein', 'Rectangles', 'Red Phoenix', 'Relief', 'Relief2', 'Reverse', 'Roman', 'Rot13', 'Rot13', 'Rotated', 'Rounded', 'Rowan Cap', 'Rozzo', 'Runic', 'Runyc', 'S Blood', 'SL Script', 'Santa Clara', 'Script', 'Serifcap', 'Shadow', 'Shimrod', 'Short', 'Slant Relief', 'Slant', 'Slide', 'Small Caps', 'Small Isometric1', 'Small Keyboard', 'Small Poison', 'Small Script', 'Small Shadow', 'Small Slant', 'Small Tengwar', 'Small', 'Soft', 'Speed', 'Spliff', 'Stacey', 'Stampate', 'Stampatello', 'Standard', 'Star Strips', 'Star Wars', 'Stellar', 'Stforek', 'Stick Letters', 'Stop', 'Straight', 'Stronger Than All', 'Sub-Zero', 'Swamp Land', 'Swan', 'Sweet', 'THIS', 'Tanja', 'Tengwar', 'Term', 'Test1', 'The Edge', 'Thick', 'Thin', 'Thorned', 'Three Point', 'Ticks Slant', 'Ticks', 'Tiles', 'Tinker-Toy', 'Tombstone', 'Train', 'Trek', 'Tsalagi', 'Tubular', 'Twisted', 'Two Point', 'USA Flag', 'Univers', 'Varsity', 'Wavy', 'Weird', 'Wet Letter', 'Whimsy', 'Wow'];
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<c-card style="max-width: 600px;">
|
||||
<c-input-text
|
||||
v-model:value="input"
|
||||
label="Your text:"
|
||||
placeholder="Your text to draw"
|
||||
raw-text
|
||||
multiline
|
||||
rows="4"
|
||||
/>
|
||||
|
||||
<n-divider />
|
||||
|
||||
<n-grid cols="4" x-gap="12" w-full>
|
||||
<n-gi span="2">
|
||||
<c-select
|
||||
v-model:value="font"
|
||||
label-position="top"
|
||||
label="Font:"
|
||||
:options="fonts"
|
||||
searchable="true"
|
||||
placeholder="Select font to use"
|
||||
/>
|
||||
</n-gi>
|
||||
<n-gi span="2">
|
||||
<n-form-item label="Width:" label-placement="top" label-width="100" :show-feedback="false">
|
||||
<n-input-number v-model:value="width" min="0" max="10000" w-full placeholder="Width of the text" />
|
||||
</n-form-item>
|
||||
</n-gi>
|
||||
</n-grid>
|
||||
|
||||
<n-divider />
|
||||
|
||||
<div v-if="processing" flex items-center justify-center>
|
||||
<n-spin size="medium" />
|
||||
<span class="ml-2">Loading font...</span>
|
||||
</div>
|
||||
|
||||
<c-alert v-if="errored" mt-1 text-center type="error">
|
||||
Current settings resulted in error.
|
||||
</c-alert>
|
||||
|
||||
<n-form-item v-if="!processing && !errored" label="Ascii Art text:">
|
||||
<TextareaCopyable
|
||||
:value="output"
|
||||
mb-1 mt-1
|
||||
copy-placement="outside"
|
||||
/>
|
||||
</n-form-item>
|
||||
</c-card>
|
||||
</template>
|
||||
@@ -0,0 +1,12 @@
|
||||
import { Artboard } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: 'ASCII Art Text Generator',
|
||||
path: '/ascii-text-drawer',
|
||||
description: 'Create ASCII art text with many fonts and styles.',
|
||||
keywords: ['ascii', 'asciiart', 'text', 'drawer'],
|
||||
component: () => import('./ascii-text-drawer.vue'),
|
||||
icon: Artboard,
|
||||
createdAt: new Date('2024-03-03'),
|
||||
});
|
||||
@@ -2,12 +2,19 @@
|
||||
import { useBase64 } from '@vueuse/core';
|
||||
import type { Ref } from 'vue';
|
||||
import { useCopy } from '@/composable/copy';
|
||||
import { useDownloadFileFromBase64 } from '@/composable/downloadBase64';
|
||||
import { getExtensionFromMimeType, getMimeTypeFromBase64, previewImageFromBase64, useDownloadFileFromBase64Refs } from '@/composable/downloadBase64';
|
||||
import { useValidation } from '@/composable/validation';
|
||||
import { isValidBase64 } from '@/utils/base64';
|
||||
|
||||
const fileName = ref('file');
|
||||
const fileExtension = ref('');
|
||||
const base64Input = ref('');
|
||||
const { download } = useDownloadFileFromBase64({ source: base64Input });
|
||||
const { download } = useDownloadFileFromBase64Refs(
|
||||
{
|
||||
source: base64Input,
|
||||
filename: fileName,
|
||||
extension: fileExtension,
|
||||
});
|
||||
const base64InputValidation = useValidation({
|
||||
source: base64Input,
|
||||
rules: [
|
||||
@@ -18,6 +25,35 @@ const base64InputValidation = useValidation({
|
||||
],
|
||||
});
|
||||
|
||||
watch(
|
||||
base64Input,
|
||||
(newValue, _) => {
|
||||
const { mimeType } = getMimeTypeFromBase64({ base64String: newValue });
|
||||
if (mimeType) {
|
||||
fileExtension.value = getExtensionFromMimeType(mimeType) || fileExtension.value;
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
function previewImage() {
|
||||
if (!base64InputValidation.isValid) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
const image = previewImageFromBase64(base64Input.value);
|
||||
image.style.maxWidth = '100%';
|
||||
image.style.maxHeight = '400px';
|
||||
const previewContainer = document.getElementById('previewContainer');
|
||||
if (previewContainer) {
|
||||
previewContainer.innerHTML = '';
|
||||
previewContainer.appendChild(image);
|
||||
}
|
||||
}
|
||||
catch (_) {
|
||||
//
|
||||
}
|
||||
}
|
||||
|
||||
function downloadFile() {
|
||||
if (!base64InputValidation.isValid) {
|
||||
return;
|
||||
@@ -44,6 +80,24 @@ async function onUpload(file: File) {
|
||||
|
||||
<template>
|
||||
<c-card title="Base64 to file">
|
||||
<n-grid cols="3" x-gap="12">
|
||||
<n-gi span="2">
|
||||
<c-input-text
|
||||
v-model:value="fileName"
|
||||
label="File Name"
|
||||
placeholder="Download filename"
|
||||
mb-2
|
||||
/>
|
||||
</n-gi>
|
||||
<n-gi>
|
||||
<c-input-text
|
||||
v-model:value="fileExtension"
|
||||
label="Extension"
|
||||
placeholder="Extension"
|
||||
mb-2
|
||||
/>
|
||||
</n-gi>
|
||||
</n-grid>
|
||||
<c-input-text
|
||||
v-model:value="base64Input"
|
||||
multiline
|
||||
@@ -53,7 +107,14 @@ async function onUpload(file: File) {
|
||||
mb-2
|
||||
/>
|
||||
|
||||
<div flex justify-center>
|
||||
<div flex justify-center py-2>
|
||||
<div id="previewContainer" />
|
||||
</div>
|
||||
|
||||
<div flex justify-center gap-3>
|
||||
<c-button :disabled="base64Input === '' || !base64InputValidation.isValid" @click="previewImage()">
|
||||
Preview image
|
||||
</c-button>
|
||||
<c-button :disabled="base64Input === '' || !base64InputValidation.isValid" @click="downloadFile()">
|
||||
Download file
|
||||
</c-button>
|
||||
|
||||
@@ -28,7 +28,7 @@ const compareMatch = computed(() => compareSync(compareString.value, compareHash
|
||||
mb-2
|
||||
/>
|
||||
<n-form-item label="Salt count: " label-placement="left" label-width="120">
|
||||
<n-input-number v-model:value="saltCount" placeholder="Salt rounds..." :max="10" :min="0" w-full />
|
||||
<n-input-number v-model:value="saltCount" placeholder="Salt rounds..." :max="100" :min="0" w-full />
|
||||
</n-form-item>
|
||||
|
||||
<c-input-text :value="hashed" readonly text-center />
|
||||
|
||||
@@ -0,0 +1,347 @@
|
||||
import type {
|
||||
Certificate,
|
||||
Fingerprint,
|
||||
Key,
|
||||
PrivateKey, Signature,
|
||||
} from 'sshpk';
|
||||
import type * as openpgp from 'openpgp';
|
||||
import * as forge from 'node-forge';
|
||||
import oids from './oids.json';
|
||||
|
||||
export interface LabelValue {
|
||||
label: string
|
||||
value: string
|
||||
multiline?: boolean
|
||||
}
|
||||
|
||||
function onErrorReturnErrorMessage(func: () => any) {
|
||||
try {
|
||||
return func();
|
||||
}
|
||||
catch (e: any) {
|
||||
return e.toString();
|
||||
}
|
||||
}
|
||||
|
||||
function buf2Hex(buffer: ArrayBuffer) { // buffer is an ArrayBuffer
|
||||
return [...new Uint8Array(buffer)]
|
||||
.map(x => x.toString(16).padStart(2, '0'))
|
||||
.join('');
|
||||
}
|
||||
|
||||
export function getPublicKeyLabelValues(publicKey: Key) {
|
||||
return [
|
||||
{
|
||||
label: 'Type:',
|
||||
value: 'Public Key',
|
||||
},
|
||||
{
|
||||
label: 'Key Type:',
|
||||
value: publicKey.type,
|
||||
},
|
||||
{
|
||||
label: 'Size:',
|
||||
value: publicKey.size,
|
||||
},
|
||||
{
|
||||
label: 'Comment:',
|
||||
value: publicKey.comment,
|
||||
multiline: true,
|
||||
},
|
||||
{
|
||||
label: 'Curve:',
|
||||
value: publicKey.curve ?? 'none',
|
||||
},
|
||||
{
|
||||
label: 'Fingerprint (sha256):',
|
||||
value: onErrorReturnErrorMessage(() => publicKey.fingerprint('sha256')),
|
||||
multiline: true,
|
||||
},
|
||||
{
|
||||
label: 'Fingerprint (sha512):',
|
||||
value: onErrorReturnErrorMessage(() => publicKey.fingerprint('sha512')),
|
||||
multiline: true,
|
||||
},
|
||||
] as LabelValue[];
|
||||
}
|
||||
|
||||
export function getPrivateKeyLabelValues(privateKey: PrivateKey) {
|
||||
return [
|
||||
{
|
||||
label: 'Type:',
|
||||
value: 'Private Key',
|
||||
},
|
||||
{
|
||||
label: 'Key Type:',
|
||||
value: privateKey.type,
|
||||
},
|
||||
{
|
||||
label: 'Size:',
|
||||
value: privateKey.size,
|
||||
},
|
||||
{
|
||||
label: 'Comment:',
|
||||
value: privateKey.comment,
|
||||
multiline: true,
|
||||
},
|
||||
{
|
||||
label: 'Curve:',
|
||||
value: privateKey.curve,
|
||||
},
|
||||
{
|
||||
label: 'Fingerprint (sha256):',
|
||||
value: onErrorReturnErrorMessage(() => privateKey.fingerprint('sha256')),
|
||||
multiline: true,
|
||||
},
|
||||
{
|
||||
label: 'Fingerprint (sha512):',
|
||||
value: onErrorReturnErrorMessage(() => privateKey.fingerprint('sha512')),
|
||||
multiline: true,
|
||||
},
|
||||
] as LabelValue[];
|
||||
}
|
||||
|
||||
export function getCertificateLabelValues(cert: Certificate) {
|
||||
return [
|
||||
{
|
||||
label: 'Type:',
|
||||
value: 'Certificate',
|
||||
},
|
||||
{
|
||||
label: 'Subjects:',
|
||||
value: cert.subjects?.map(s => s.toString()).join('\n'),
|
||||
multiline: true,
|
||||
},
|
||||
{
|
||||
label: 'Valid From:',
|
||||
value: cert.validFrom.toISOString(),
|
||||
},
|
||||
{
|
||||
label: 'Valid Until:',
|
||||
value: cert.validUntil.toISOString(),
|
||||
},
|
||||
{
|
||||
label: 'Issuer:',
|
||||
value: cert.issuer.toString(),
|
||||
multiline: true,
|
||||
},
|
||||
{
|
||||
label: 'Subject Key:',
|
||||
value: onErrorReturnErrorMessage(() => cert.subjectKey?.toString('ssh')),
|
||||
multiline: true,
|
||||
},
|
||||
{
|
||||
label: 'Subject Key Type:',
|
||||
value: cert.subjectKey?.type,
|
||||
},
|
||||
{
|
||||
label: 'Subject Size:',
|
||||
value: cert.subjectKey?.size,
|
||||
},
|
||||
{
|
||||
label: 'Subject Comment:',
|
||||
value: cert.subjectKey?.comment,
|
||||
multiline: true,
|
||||
},
|
||||
{
|
||||
label: 'Subject Curve:',
|
||||
value: cert.subjectKey?.curve ?? 'none',
|
||||
},
|
||||
{
|
||||
label: 'Issuer Key:',
|
||||
value: onErrorReturnErrorMessage(() => cert.issuerKey?.toString('ssh')),
|
||||
multiline: true,
|
||||
},
|
||||
{
|
||||
label: 'Serial:',
|
||||
value: buf2Hex(cert.serial),
|
||||
},
|
||||
{
|
||||
label: 'Purposes:',
|
||||
value: cert.purposes?.join(', '),
|
||||
},
|
||||
{
|
||||
label: 'Extensions:',
|
||||
value: JSON.stringify(cert.getExtensions().map(ext => ({
|
||||
oid: (<any>ext).oid,
|
||||
name: (<any>ext).name || (<any>oids)[(<any>ext).oid],
|
||||
critical: (<any>ext).critical,
|
||||
data: ext.data?.toString('hex') || (<any>ext).bits?.toString('hex'),
|
||||
})), null, 2),
|
||||
multiline: true,
|
||||
},
|
||||
{
|
||||
label: 'Fingerprint (sha256):',
|
||||
value: onErrorReturnErrorMessage(() => cert.fingerprint('sha256')),
|
||||
multiline: true,
|
||||
},
|
||||
{
|
||||
label: 'Fingerprint (sha512):',
|
||||
value: onErrorReturnErrorMessage(() => cert.fingerprint('sha512')),
|
||||
multiline: true,
|
||||
},
|
||||
{
|
||||
label: 'Certificate (pem):',
|
||||
value: onErrorReturnErrorMessage(() => cert.toString('pem')),
|
||||
multiline: true,
|
||||
},
|
||||
] as LabelValue[];
|
||||
}
|
||||
|
||||
export async function getPGPPublicKeyLabelValuesAsync(pgpPublicKey: openpgp.Key) {
|
||||
return [
|
||||
{
|
||||
label: 'Type:',
|
||||
value: 'PGP Public Key',
|
||||
},
|
||||
{
|
||||
label: 'Creation Time:',
|
||||
value: pgpPublicKey.getCreationTime().toString(),
|
||||
},
|
||||
{
|
||||
label: 'Expiration Time:',
|
||||
value: (await pgpPublicKey.getExpirationTime())?.toString() || '',
|
||||
},
|
||||
{
|
||||
label: 'Algorithm Info:',
|
||||
value: JSON.stringify(pgpPublicKey.getAlgorithmInfo()),
|
||||
},
|
||||
{
|
||||
label: 'Fingerprint:',
|
||||
value: pgpPublicKey.getFingerprint(),
|
||||
},
|
||||
{
|
||||
label: 'User ID(s):',
|
||||
value: pgpPublicKey.getUserIDs().join(', '),
|
||||
},
|
||||
{
|
||||
label: 'Key ID(s):',
|
||||
value: pgpPublicKey.getKeyIDs().map(k => k.toHex()).join(' ; '),
|
||||
},
|
||||
] as LabelValue[];
|
||||
}
|
||||
|
||||
export async function getPGPPrivateKeyLabelValuesAsync(pgpPrivateKey: openpgp.Key) {
|
||||
return [
|
||||
{
|
||||
label: 'Type:',
|
||||
value: 'PGP Private Key',
|
||||
},
|
||||
{
|
||||
label: 'Creation Time:',
|
||||
value: pgpPrivateKey.getCreationTime().toString(),
|
||||
},
|
||||
{
|
||||
label: 'Expiration Time:',
|
||||
value: (await pgpPrivateKey.getExpirationTime())?.toString() || '',
|
||||
},
|
||||
{
|
||||
label: 'Algorithm Info:',
|
||||
value: JSON.stringify(pgpPrivateKey.getAlgorithmInfo()),
|
||||
},
|
||||
{
|
||||
label: 'Fingerprint:',
|
||||
value: pgpPrivateKey.getFingerprint(),
|
||||
},
|
||||
{
|
||||
label: 'User ID(s):',
|
||||
value: pgpPrivateKey.getUserIDs().join(', '),
|
||||
},
|
||||
{
|
||||
label: 'Key ID(s):',
|
||||
value: pgpPrivateKey.getKeyIDs().map(k => k.toHex()).join(' ; '),
|
||||
},
|
||||
] as LabelValue[];
|
||||
}
|
||||
|
||||
export function getCSRLabelValues(csr: forge.pki.Certificate) {
|
||||
return [
|
||||
{
|
||||
label: 'Type:',
|
||||
value: 'Certificate Signing Request',
|
||||
},
|
||||
{
|
||||
label: 'Subject:',
|
||||
value: csr.subject?.attributes?.map(a => JSON.stringify(a, null, 2)).join('\n'),
|
||||
multiline: true,
|
||||
},
|
||||
{
|
||||
label: 'Issuer:',
|
||||
value: csr.issuer?.toString(),
|
||||
multiline: true,
|
||||
},
|
||||
{
|
||||
label: 'Validity:',
|
||||
value: JSON.stringify(csr.validity, null, 2),
|
||||
},
|
||||
{
|
||||
label: 'Signature:',
|
||||
value: csr.signature,
|
||||
},
|
||||
{
|
||||
label: 'Signature Oid:',
|
||||
value: csr.signatureOid?.toString(),
|
||||
},
|
||||
{
|
||||
label: 'Signature parameters:',
|
||||
value: JSON.stringify(csr.signatureParameters, null, 2),
|
||||
},
|
||||
{
|
||||
label: 'Signing info:',
|
||||
value: JSON.stringify(csr.siginfo, null, 2),
|
||||
},
|
||||
{
|
||||
label: 'Serial:',
|
||||
value: csr.serialNumber?.toString(),
|
||||
},
|
||||
{
|
||||
label: 'Extensions:',
|
||||
value: JSON.stringify(csr.extensions, null, 2),
|
||||
multiline: true,
|
||||
},
|
||||
{
|
||||
label: 'Public Key:',
|
||||
value: onErrorReturnErrorMessage(() => forge.pki.publicKeyToPem(csr.publicKey)),
|
||||
multiline: true,
|
||||
},
|
||||
{
|
||||
label: 'Public Key Fingerprint:',
|
||||
value: onErrorReturnErrorMessage(() => forge.pki.getPublicKeyFingerprint(csr.publicKey)?.toHex()),
|
||||
multiline: true,
|
||||
},
|
||||
] as LabelValue[];
|
||||
}
|
||||
|
||||
export function getFingerprintLabelValues(fingerprint: Fingerprint) {
|
||||
return [
|
||||
{
|
||||
label: 'Type:',
|
||||
value: 'Fingerprint',
|
||||
},
|
||||
{
|
||||
label: 'Fingerprint (hex):',
|
||||
value: fingerprint.toString('hex'),
|
||||
},
|
||||
{
|
||||
label: 'Fingerprint (base64):',
|
||||
value: fingerprint.toString('base64'),
|
||||
},
|
||||
] as LabelValue[];
|
||||
}
|
||||
|
||||
export function getSignatureLabelValues(signature: Signature) {
|
||||
return [
|
||||
{
|
||||
label: 'Type:',
|
||||
value: 'Signature',
|
||||
},
|
||||
{
|
||||
label: 'Fingerprint (asn1):',
|
||||
value: signature.toString('asn1'),
|
||||
},
|
||||
{
|
||||
label: 'Fingerprint (ssh):',
|
||||
value: signature.toString('ssh'),
|
||||
},
|
||||
] as LabelValue[];
|
||||
}
|
||||
@@ -0,0 +1,201 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { getKeyOrCertificateInfosAsync } from './certificate-key-parser.service';
|
||||
|
||||
const encryptedPrivateKey = /* NOSONAR */ `-----BEGIN ENCRYPTED PRIVATE KEY-----
|
||||
MIIFHzBJBgkqhkiG9w0BBQ0wPDAbBgkqhkiG9w0BBQwwDgQILjmiBkdY16UCAggA
|
||||
MB0GCWCGSAFlAwQBAgQQ+sYf2MO9hoZ4F5+LdE2vRgSCBNC6CLgqMJ6fKS3YnMMJ
|
||||
yc3/iuqRniP/11OllTmOr94/2dl6Xk8TndBqhAacYizxgNCHiPP+NEmwtPqbbE+a
|
||||
boNqEh0m8NUegxc3qGzon8cJgobgvpw7eml4K1OjgxCw58Y1VQixSKpdHEC1E1o6
|
||||
RBBwK5bIld97GEi4VPuqYoYvffcD5cDsj9HxqvEWGTXDtu/nKEA0cVe7wI8t1CtR
|
||||
/kaFoCyYOFu9RE0YprcWT1GpYTHR3TE7+lXYR8vPGdMCMgww1mLCXDAz1G4Y5+1K
|
||||
WAmiVn3uQqgR9rU/upaM01oOz5LJWtgi5gDV8zX0r41i8pYYQNvGiSvvw1pQJB5Q
|
||||
sFyuVNU6hOCQ+zLssfmxnhRpgM3hn07gV+LFAg+ly6WQsl9W6m8WpJ7SgLeByb7g
|
||||
teT+ml7wTuFZIiPbqD3Pq0grRZir3n3NuphUk9YwR2jN4hHXEDiQ9f4D4SY41RT3
|
||||
lW7roK+oM1K3N4cDin+WyGiFFLyWrwrlXWmHN5A3pOf+0rQUooZdUTGSU0N9v9Ho
|
||||
17x/+aDAeCMEl7y0GfEoglNxCjoVj70E9oJL21amziZAUOXobhuzeb0dWJmAtXoj
|
||||
wETYW6QH8m80eEyvKfkLsQ2Sd360ILhRJtyN1HFJAQbsC3C0VYiqA3kjN4S1Zfeg
|
||||
08/odqdi0a7GSTm/h+iT3rimXXS2TLfSYIzI14LZDCeCz33tX13WQrhGPbYEJBHX
|
||||
PKc1ws0HHBwdpM8d+liPHm+Czt2/sbcGCNBWSPWWZpL+uzeh9HQYEUoefk88JCPD
|
||||
xQlANh8BCzq0L1pYNZdOYVNb0fT1XluuP8xtIePsNHIsKRURDlCjaEAY41DwXmTp
|
||||
DFRd41BLFZztX5jtMGw4lb3RplcaaRhxCEF51hRJQdb5HMpn4cr2Hqy5UP+ke2vV
|
||||
0DVRi0jp7Mkp/+qdEEotWT1AxSeYoiW7j/GwlC8tqAC9NoMmcHAuOGF5fHshxz/L
|
||||
lnWSHiPjfLezpfryBwb5D4+3/TFEzc8gPsco/Ip7qU1+wMObTLs9Nq1ROW/aClYU
|
||||
A/a5DyCQUHaHyYRse/BLTXxr2gsMCm7qaTdCy+pZcL1f+YEISHtITuA38eGfQzTX
|
||||
cX/k75t7+mKW4nKBBT/SZbBT27gEeZpAn8ORaMixedBQZmoFHLKNlrf+F+fBFfhp
|
||||
J4NFeBFnEpa3YrPVgLTJY6yN0gummIC8GA7EpggdAcNTbp5EU+IHlHhExhzr+W+f
|
||||
YCOdD4Zt6LMZjAlpId2APn9NMscpwT59K/61n1CjElpWPwfTW2hyto7/1q0fIgwK
|
||||
z2E615qLFJa+EFR8hTFz0wjNUOCrDgS7K7STQbGaFfjmAe2LUFZhTm86u6K0fnUY
|
||||
sNJeDSnvDYEQD1MUiezD06MmzdEHqJHNKztoahqPsQIktH84RGdc1oTPMS4PLwLM
|
||||
JJmEHqLF7I8T6L+BvMp2LhZTrx3g1qU4wZRC5Rys7J5WR5E+v8XttEcViEO4Lrdr
|
||||
wNRoroHuXLw4nOzM58DS5cHGliw4BeErQ6XC0aan2EM789Us3Hrx0zerfIOyUdBe
|
||||
N39sh8X4jo7YHMBH3yqVsAIU3e8c2Z2rayP7+AyUncAfff9EH3BNpIkQIG3xsqh1
|
||||
oimmuNBEFKy1F1rSP3NQvwcZVw==
|
||||
-----END ENCRYPTED PRIVATE KEY-----
|
||||
`;
|
||||
const openSSHPrivateKey = /* NOSONAR */ `-----BEGIN OPENSSH PRIVATE KEY-----
|
||||
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABFwAAAAdzc2gtcn
|
||||
NhAAAAAwEAAQAAAQEA4r66AJdnJBwsKDyTr4QizQYMVhaFtcBcMcVuJHbKW/DtG985oA2V
|
||||
hJRfcBz8MKNS9iTLRkgq4yoTVCIi5FDVU4EnQbLMoLfN2og6PpgSSL59bPUvYoenp6RS1i
|
||||
R606eVakH/J6IIiadHMWBrLjCiChf5U/bvuSkUQWi0YLH9hI6Nw+S9MdwzBofshZZdww9Y
|
||||
4udrWEVdfGrxWv5gjlaquxYZAnfaYCI0Pgh9v1nEALFufOVi1onUZaxduyvsLoQnXiwP2c
|
||||
fWXsBYmjfViTTADTvHTLCF9IH+6heGk2WJkosgiajmMlc+1U7Xs+r5ZJ0ikt0ioydPN8Hi
|
||||
LnVih6lENwAAA7hrsy+Ha7MvhwAAAAdzc2gtcnNhAAABAQDivroAl2ckHCwoPJOvhCLNBg
|
||||
xWFoW1wFwxxW4kdspb8O0b3zmgDZWElF9wHPwwo1L2JMtGSCrjKhNUIiLkUNVTgSdBssyg
|
||||
t83aiDo+mBJIvn1s9S9ih6enpFLWJHrTp5VqQf8nogiJp0cxYGsuMKIKF/lT9u+5KRRBaL
|
||||
Rgsf2Ejo3D5L0x3DMGh+yFll3DD1ji52tYRV18avFa/mCOVqq7FhkCd9pgIjQ+CH2/WcQA
|
||||
sW585WLWidRlrF27K+wuhCdeLA/Zx9ZewFiaN9WJNMANO8dMsIX0gf7qF4aTZYmSiyCJqO
|
||||
YyVz7VTtez6vlknSKS3SKjJ083weIudWKHqUQ3AAAAAwEAAQAAAQBmKTj0+0JlaqwalPCV
|
||||
rBth9M+qGgu0kC753dJ6a2tRcYPjgvgbvQMY8SDvCqA16eB/NqS/zdRE9bgvuBGwfRsgvJ
|
||||
hLaZv47de6FpbnjOzwCaPJa88lvak0Rz1rbpRIuMEBVyr3WHIwU0YoYSDpdtALbDHSOvhX
|
||||
nMKblelvh8KJ7jelix2R3llvcYexKdS66zzP7nPj5x8d1FDo2cxqWsy2aQxMlbZGTd3ujQ
|
||||
ABzZGvI3L0tJRf4sPph/eLS28/teAExp5Uo9DuehqgU33iAYOaO2vZGqQJxBbaVtiarVK1
|
||||
kRQLBrhieMIUJ9XHSwDn74VHWtBNfocTSPe6vbVMjLpBAAAAgGBTluv8WHqG1JTauYNjBI
|
||||
EhSKL96MrIZR+fytEg3gcxitPnpQiPTP6XHXpQ7fxVk25bYvCj4QNi00jW6kBR46Zh90NI
|
||||
nKgYvxdYoA5A7L6JvvByy00SbLssiM7kf3ByT/4EA8S911Q4cks8lKrwEUw+UzqTBR6QdG
|
||||
JyZQQcUJa+AAAAgQDyIYjECyG91/X+zFYcecW+wWyLBzyEvOxFlRd4tZnvWknQTdtFqTlN
|
||||
orTT+un1ygKe0DkfwXSbbjE69+xxlMtPQ2X6wd2mUruvtyBv1R8Kfj+doY5lFUfCEKj88u
|
||||
ck1+Ol1K+KDnvlYZVnb5eCvMxmEMqyD+eTQ2EcNAJtjNmuDQAAAIEA77uU45tseIe9E6OZ
|
||||
Hum2bUxQmqkpjrNCECiTJR99NUx+22sBZwrMAt3QzBwgSogQhLKAw+keEUG6zAl7UA6Lsc
|
||||
vJdDllY2vYMRW9LZ1XNCxvl0i6QUsT8l9hwA9GuMQN1m6NRU+cnEU87KIXVBb+DRyZwo21
|
||||
4WRkAc1Ru/KtrlMAAAAAAQID
|
||||
-----END OPENSSH PRIVATE KEY-----
|
||||
`;
|
||||
|
||||
const formatsData = [
|
||||
{
|
||||
input: `
|
||||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
|
||||
xjMEZkHgaRYJKwYBBAHaRw8BAQdAdCmEzdpkjMzOoNkzgDFk/CHd+6uYAWkZ
|
||||
BPbjEzTJWtfNAMKMBBAWCgA+BYJmQeBpBAsJBwgJkEDKj7jnGr9wAxUICgQW
|
||||
AAIBAhkBApsDAh4BFiEExfkkog7+aHz7TqepQMqPuOcav3AAAJaaAQCayvFQ
|
||||
jxFbC7oOzX+8wOV8gmXVXXqI5dtLQYY3SeyqmwD/ftVwwe6Prl0vVFyLB/5y
|
||||
lIpAti8AK1Lv8hIezzOx4QDOOARmQeBpEgorBgEEAZdVAQUBAQdA2jU3Rmt7
|
||||
nMFvqyjgKdVjK5o2CQI2vJiSzn8cfV1piEgDAQgHwngEGBYKACoFgmZB4GkJ
|
||||
kEDKj7jnGr9wApsMFiEExfkkog7+aHz7TqepQMqPuOcav3AAABI0AQCMW4Hg
|
||||
FuIaZk9LVQsUmNknj4a70fzwDYWUYvq0C1iy/QD+KXvLKfcmky5OXJA7RsRV
|
||||
SN2a4SE4c8FH22uyirzyUww=
|
||||
=w51K
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
||||
`,
|
||||
pass: '',
|
||||
type: 'PGP Public Key',
|
||||
},
|
||||
{
|
||||
// NOSONAR
|
||||
input: `
|
||||
-----BEGIN PGP PRIVATE KEY BLOCK-----
|
||||
|
||||
xVgEZkHgaRYJKwYBBAHaRw8BAQdAdCmEzdpkjMzOoNkzgDFk/CHd+6uYAWkZ
|
||||
BPbjEzTJWtcAAQDXcDgEziqd9ZO/OpoyblRRxAOgPq2y8zTitwTz+ixX7RCe
|
||||
zQDCjAQQFgoAPgWCZkHgaQQLCQcICZBAyo+45xq/cAMVCAoEFgACAQIZAQKb
|
||||
AwIeARYhBMX5JKIO/mh8+06nqUDKj7jnGr9wAACWmgEAmsrxUI8RWwu6Ds1/
|
||||
vMDlfIJl1V16iOXbS0GGN0nsqpsA/37VcMHuj65dL1Rciwf+cpSKQLYvACtS
|
||||
7/ISHs8zseEAx10EZkHgaRIKKwYBBAGXVQEFAQEHQNo1N0Zre5zBb6so4CnV
|
||||
YyuaNgkCNryYks5/HH1daYhIAwEIBwAA/2PxYHVWBmkLD9eiFDLJ0EtspWQ+
|
||||
JKui86xylduxQWngEIrCeAQYFgoAKgWCZkHgaQmQQMqPuOcav3ACmwwWIQTF
|
||||
+SSiDv5ofPtOp6lAyo+45xq/cAAAEjQBAIxbgeAW4hpmT0tVCxSY2SePhrvR
|
||||
/PANhZRi+rQLWLL9AP4pe8sp9yaTLk5ckDtGxFVI3ZrhIThzwUfba7KKvPJT
|
||||
DA==
|
||||
=hSgY
|
||||
-----END PGP PRIVATE KEY BLOCK-----
|
||||
`,
|
||||
pass: '',
|
||||
type: 'PGP Private Key',
|
||||
},
|
||||
{
|
||||
input: `
|
||||
-----BEGIN CERTIFICATE REQUEST-----
|
||||
MIIClTCCAX0CAQAwUDERMA8GA1UEAxMIdGVzdC5jb20xDzANBgNVBAYTBkZyYW5j
|
||||
ZTELMAkGA1UECBMCRlIxDjAMBgNVBAcTBVBhcmlzMQ0wCwYDVQQKEwRUZXN0MIIB
|
||||
IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnIUCiMFffkHGuAhwTaW84uh7
|
||||
/03KcfQAZB/bZKqLaxtcBGryTB1gHFSsl3uFlW+tIcjsboWnQ2JB0J1Z5Fp4a6IA
|
||||
/62S6GTo6dAd9f73TR+P2vQghZOtiCoc7CN2KlosIx/EWMcMjq+CBzLRjjOOR8tX
|
||||
Yn4ZAhPInO1ZGPMEpfEEfn44aJFRGaMy4KEU+RpTzFKFW6bialvKC3yGPegQ4wcz
|
||||
AqvyUc9WUwG53HYLSJHldg8tZnpiJBNUh8mXiIiw51MFJ4Q9RVnz9vuoHgC6FmUv
|
||||
qlg/R4gjGGfjDhAIUtz+Y98Dl+xfLmD+EzY7KQ1ur412BvQ8rXankNGLA2ea+wID
|
||||
AQABoAAwDQYJKoZIhvcNAQEFBQADggEBABdtkhFSwgaXZWTcKrz6oarvuaQkrjvs
|
||||
Nk9lUs1h/dfhJpnE3iZA0CuNp5PVQRdC2g+/37r21/udjNFdrX1Rm6/ldG0b2xDu
|
||||
nQYZcLpIVB0fZ2TB+FHthmGw175I2niWIfNJQhIqnWJXi8unkGTMP2cD6j3axtMi
|
||||
K8MUVPhWmL11ojEXItG35AU79G6GhFxel9wIByqsXreCUyOcrpYCHy2Fv85ivdE1
|
||||
JyEQ2tE/f+cKwNg4yJNFoCoHSSFRn61F12J4m2nwpQ77VfD66oVkWtk/gYMrwx0d
|
||||
4FlJNs+NtZDlcM7fJLNo7YsMdne7hl4aL6WG96kdWdxYEt/2dl3WXbY=
|
||||
-----END CERTIFICATE REQUEST-----
|
||||
`,
|
||||
pass: '',
|
||||
type: 'Certificate Signing Request',
|
||||
},
|
||||
{
|
||||
input: `
|
||||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDivroAl2ckHCwoPJOvhCLNBgxWFoW1wFwxxW4kdspb8O0b3zmgDZWElF9wHPwwo1L2JMtGSCrjKhNUIiLkUNVTgSdBssygt83aiDo+mBJIvn1s9S9ih6enpFLWJHrTp5VqQf8nogiJp0cxYGsuMKIKF/lT9u+5KRRBaLRgsf2Ejo3D5L0x3DMGh+yFll3DD1ji52tYRV18avFa/mCOVqq7FhkCd9pgIjQ+CH2/WcQAsW585WLWidRlrF27K+wuhCdeLA/Zx9ZewFiaN9WJNMANO8dMsIX0gf7qF4aTZYmSiyCJqOYyVz7VTtez6vlknSKS3SKjJ083weIudWKHqUQ3
|
||||
`,
|
||||
pass: '',
|
||||
type: 'Public Key',
|
||||
title: 'ssh-rsa Public Key',
|
||||
},
|
||||
{
|
||||
input: openSSHPrivateKey,
|
||||
pass: '',
|
||||
type: 'Private Key',
|
||||
title: 'Unencrypted Private Key',
|
||||
},
|
||||
{
|
||||
input: `
|
||||
SHA256:qflg623OemnYEHDwUafq+XuMoB0UdJ+Ks44kHcWxDyM
|
||||
`,
|
||||
pass: '',
|
||||
type: 'Fingerprint',
|
||||
},
|
||||
{
|
||||
input: `
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIIDQDCCAiigAwIBAgIJK59gK0GUbZO3MA0GCSqGSIb3DQEBBQUAMFAxETAPBgNV
|
||||
BAMTCHRlc3QuY29tMQ8wDQYDVQQGEwZGcmFuY2UxCzAJBgNVBAgTAkZSMQ4wDAYD
|
||||
VQQHEwVQYXJpczENMAsGA1UEChMEVGVzdDAeFw0yNDA1MTMwOTQ4MTVaFw0yNTA1
|
||||
MTMwOTQ4MTVaMFAxETAPBgNVBAMTCHRlc3QuY29tMQ8wDQYDVQQGEwZGcmFuY2Ux
|
||||
CzAJBgNVBAgTAkZSMQ4wDAYDVQQHEwVQYXJpczENMAsGA1UEChMEVGVzdDCCASIw
|
||||
DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKrE3C9tUtmvHZkIwEBf1h5N7KC
|
||||
FoXowfNZxKK7SHWcnQjBdv0ziqsU+GmcUqUD1GymMcBweqw4TQVg0a/UwdYIUTuQ
|
||||
GXGx4ULCXKHv/NfmVSWcMsOZHAR4m/yEzTB/ZjKMSrqnIWyOdusDMRn4VRoAtrKO
|
||||
/FM+SDJ6wvnJ/jNoZJXktq9avYduEi+heNekIF6NYM9clzm9Ff3Evf89KuigBcsu
|
||||
rgL+S8PjotCwxMgzOWV4/paeeQluqYeU94prWIASS/D3elH7qFTAUnafBICFN2zs
|
||||
XWY6ZFCR8QrDI5F/8KELq/3BaLQBxpIi9SmADLWqnPOu+6H5rzr2YV8LaxMCAwEA
|
||||
AaMdMBswDAYDVR0TBAUwAwEB/zALBgNVHQ8EBAMCAvQwDQYJKoZIhvcNAQEFBQAD
|
||||
ggEBAKhrUNnWe0VmgefvfwsAqrbk0Z6PwaibIl/l5I9oh1qM01J9BFHpvomhcLxu
|
||||
cmIpD6nAqtkNyvsXtFAnZG3WNaf45yyd153wSa0QnrNo2GRH9quktm4DaRIIP7qq
|
||||
EdtApYCeT16LvAGYUH3ubCdom8w6DkukLg8qMrXMywSZlx85jlJfifPvMKsJmm/a
|
||||
QAq1H3cYaaj0DocF1rCP+hLzvsuM7UwS2JOK8Mw49kYPBTbCVmRDOE1rhlDIO8Kw
|
||||
V7CCFr4NXsyRlM0TpKdspOmxJiyxmk6DoVgp9PeqfoyDAC9TJU0VJ6A2x+AfjK4O
|
||||
Wg6xDXMx6dk6Rhh8yqGrmx05QM8=
|
||||
-----END CERTIFICATE-----
|
||||
`,
|
||||
pass: '',
|
||||
type: 'Certificate',
|
||||
},
|
||||
{
|
||||
input: `
|
||||
c6:b9:73:b8:68:49:33:ad:27:51:bb:6c:16:e7:9c:da:dd:e3:92:15
|
||||
`,
|
||||
pass: '',
|
||||
type: 'Fingerprint',
|
||||
title: 'HEX Fingerprint',
|
||||
},
|
||||
{
|
||||
input: encryptedPrivateKey,
|
||||
pass: 'test',
|
||||
type: 'Private Key',
|
||||
title: 'Encrypted Private Key',
|
||||
},
|
||||
];
|
||||
|
||||
describe('certificate-key-parser', () => {
|
||||
for (const format of formatsData) {
|
||||
const { input, pass, type, title } = format;
|
||||
it(`Parse '${title ?? type}' format with right type (${type})`, async () => {
|
||||
const { values } = await getKeyOrCertificateInfosAsync(input, pass);
|
||||
const result_type = values.find(v => v.label === 'Type:')?.value;
|
||||
|
||||
expect(result_type).toBe(type);
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,129 @@
|
||||
import type { Buffer } from 'node:buffer';
|
||||
import {
|
||||
parseCertificate, parseFingerprint,
|
||||
parseKey,
|
||||
parsePrivateKey,
|
||||
parseSignature,
|
||||
} from 'sshpk';
|
||||
import type {
|
||||
AlgorithmType,
|
||||
Certificate,
|
||||
CertificateFormat,
|
||||
Fingerprint,
|
||||
Key,
|
||||
PrivateKey, Signature, SignatureFormatType,
|
||||
} from 'sshpk';
|
||||
import { Base64 } from 'js-base64';
|
||||
import * as openpgp from 'openpgp';
|
||||
import * as forge from 'node-forge';
|
||||
import { type LabelValue, getCSRLabelValues, getCertificateLabelValues, getFingerprintLabelValues, getPGPPrivateKeyLabelValuesAsync, getPGPPublicKeyLabelValuesAsync, getPrivateKeyLabelValues, getPublicKeyLabelValues, getSignatureLabelValues } from './certificate-key-parser.infos';
|
||||
|
||||
export async function getKeyOrCertificateInfosAsync(keyOrCertificateValue: string | Buffer, passphrase: string) {
|
||||
try {
|
||||
const canParse = (value: string | Buffer, parseFunction: (value: string | Buffer) => any) => {
|
||||
try {
|
||||
return parseFunction(value);
|
||||
}
|
||||
catch {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
const canParseAsync = async (value: string | Buffer, parseFunction: (value: string | Buffer) => Promise<any>) => {
|
||||
try {
|
||||
return await parseFunction(value);
|
||||
}
|
||||
catch {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
|
||||
const inputKeyOrCertificateValue = (typeof keyOrCertificateValue === 'string' ? keyOrCertificateValue?.trim() : keyOrCertificateValue);
|
||||
|
||||
const privateKey = canParse(inputKeyOrCertificateValue,
|
||||
value => parsePrivateKey(value, 'auto', { passphrase })) as PrivateKey;
|
||||
if (privateKey) {
|
||||
return {
|
||||
values: getPrivateKeyLabelValues(privateKey),
|
||||
};
|
||||
}
|
||||
|
||||
const publicKey = canParse(inputKeyOrCertificateValue, parseKey) as Key;
|
||||
if (publicKey) {
|
||||
return { values: getPublicKeyLabelValues(publicKey) };
|
||||
}
|
||||
|
||||
const pgpPrivateKey = await canParseAsync(inputKeyOrCertificateValue, value => openpgp.readPrivateKey({ armoredKey: value.toString() })) as openpgp.Key;
|
||||
if (pgpPrivateKey) {
|
||||
return { values: await getPGPPrivateKeyLabelValuesAsync(pgpPrivateKey) };
|
||||
}
|
||||
|
||||
const pgpPublicKey = await canParseAsync(inputKeyOrCertificateValue, value => openpgp.readKey({ armoredKey: value.toString() })) as openpgp.Key;
|
||||
if (pgpPublicKey) {
|
||||
return { values: await getPGPPublicKeyLabelValuesAsync(pgpPublicKey) };
|
||||
}
|
||||
|
||||
const cert = canParse(inputKeyOrCertificateValue, (value) => {
|
||||
for (const format of ['openssh', 'pem', 'x509']) {
|
||||
try {
|
||||
return parseCertificate(value, format as CertificateFormat);
|
||||
}
|
||||
catch {}
|
||||
}
|
||||
return null;
|
||||
}) as Certificate;
|
||||
if (cert) {
|
||||
let certificateX509DER = '';
|
||||
try {
|
||||
certificateX509DER = Base64.fromUint8Array(cert.toBuffer('x509'));
|
||||
}
|
||||
catch {}
|
||||
|
||||
return { values: getCertificateLabelValues(cert), certificateX509DER };
|
||||
}
|
||||
|
||||
const csr = canParse(inputKeyOrCertificateValue, (value) => {
|
||||
return forge.pki.certificationRequestFromPem(value.toString(), false, false);
|
||||
}) as forge.pki.Certificate;
|
||||
if (csr) {
|
||||
return { values: getCSRLabelValues(csr) };
|
||||
}
|
||||
|
||||
const fingerprint = canParse(inputKeyOrCertificateValue, value => parseFingerprint(value.toString())) as Fingerprint;
|
||||
if (fingerprint) {
|
||||
return { values: getFingerprintLabelValues(fingerprint) };
|
||||
}
|
||||
|
||||
const signature = canParse(inputKeyOrCertificateValue, (value) => {
|
||||
//
|
||||
for (const algo of ['dsa', 'rsa', 'ecdsa', 'ed25519']) {
|
||||
for (const format of ['asn1', 'ssh', 'raw']) {
|
||||
try {
|
||||
return parseSignature(value, algo as AlgorithmType, format as SignatureFormatType);
|
||||
}
|
||||
catch {}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}) as Signature;
|
||||
if (signature) {
|
||||
return { values: getSignatureLabelValues(signature) };
|
||||
}
|
||||
|
||||
return {
|
||||
values: [
|
||||
{
|
||||
label: 'Type:',
|
||||
value: 'Unknown format or invalid passphrase',
|
||||
}],
|
||||
};
|
||||
}
|
||||
catch (e: any) {
|
||||
return {
|
||||
values: [
|
||||
{
|
||||
label: 'Error:',
|
||||
value: e.toString(),
|
||||
}] as LabelValue[],
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
<script setup lang="ts">
|
||||
import { Buffer } from 'node:buffer';
|
||||
|
||||
import { getKeyOrCertificateInfosAsync } from './certificate-key-parser.service';
|
||||
import { type LabelValue } from './certificate-key-parser.infos';
|
||||
import { useDownloadFileFromBase64 } from '@/composable/downloadBase64';
|
||||
|
||||
const inputKeyOrCertificate = ref('');
|
||||
const passphrase = ref('');
|
||||
const fileInput = ref() as Ref<Buffer>;
|
||||
const inputType = ref<'file' | 'content'>('file');
|
||||
|
||||
async function onUpload(file: File) {
|
||||
if (file) {
|
||||
fileInput.value = Buffer.from(await file.arrayBuffer());
|
||||
inputKeyOrCertificate.value = '';
|
||||
}
|
||||
}
|
||||
|
||||
const certificateX509DER = ref('');
|
||||
const { download: downloadX509DER } = useDownloadFileFromBase64(
|
||||
{
|
||||
source: certificateX509DER,
|
||||
extension: 'der',
|
||||
});
|
||||
|
||||
function downloadX509DERFile() {
|
||||
if (certificateX509DER.value === '') {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
downloadX509DER();
|
||||
}
|
||||
catch (_) {
|
||||
//
|
||||
}
|
||||
}
|
||||
|
||||
const parsedSections = computedAsync<LabelValue[]>(async () => {
|
||||
const inputContent = inputKeyOrCertificate.value;
|
||||
const file = fileInput.value;
|
||||
let inputKeyOrCertificateValue: string | Buffer = '';
|
||||
if (inputType.value === 'file' && file) {
|
||||
inputKeyOrCertificateValue = file;
|
||||
}
|
||||
else if (inputType.value === 'content' && inputContent) {
|
||||
inputKeyOrCertificateValue = inputContent;
|
||||
}
|
||||
const { values, certificateX509DER: certPEM } = await getKeyOrCertificateInfosAsync(inputKeyOrCertificateValue, passphrase.value);
|
||||
certificateX509DER.value = certPEM || '';
|
||||
return values;
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<c-card>
|
||||
<n-radio-group v-model:value="inputType" name="radiogroup" mb-2 flex justify-center>
|
||||
<n-space>
|
||||
<n-radio
|
||||
value="file"
|
||||
label="File"
|
||||
/>
|
||||
<n-radio
|
||||
value="content"
|
||||
label="Content"
|
||||
/>
|
||||
</n-space>
|
||||
</n-radio-group>
|
||||
|
||||
<c-file-upload
|
||||
v-if="inputType === 'file'"
|
||||
title="Drag and drop a Certificate file here, or click to select a Certificate file"
|
||||
@file-upload="onUpload"
|
||||
/>
|
||||
|
||||
<c-input-text
|
||||
v-if="inputType === 'content'"
|
||||
v-model:value="inputKeyOrCertificate"
|
||||
label="Paste your Public Key / Private Key / Signature / Fingerprint / Certificate:"
|
||||
placeholder="Your Public Key / Private Key / Signature / Fingerprint / Certificate..."
|
||||
multiline
|
||||
rows="8"
|
||||
data-test-id="input"
|
||||
/>
|
||||
</c-card>
|
||||
|
||||
<c-input-text
|
||||
v-model:value="passphrase"
|
||||
label="Passphrase (for encrypted keys):"
|
||||
placeholder="Passphrase (for encrypted keys)..."
|
||||
type="password"
|
||||
data-test-id="pass"
|
||||
/>
|
||||
|
||||
<n-divider />
|
||||
|
||||
<input-copyable
|
||||
v-for="{ label, value, multiline } of parsedSections"
|
||||
:key="label"
|
||||
:label="label"
|
||||
:data-test-id="label"
|
||||
label-position="left"
|
||||
label-width="100px"
|
||||
label-align="right"
|
||||
|
||||
autosize mb-2
|
||||
:multiline="multiline"
|
||||
:value="value"
|
||||
placeholder="Not Set"
|
||||
/>
|
||||
|
||||
<div v-if="certificateX509DER !== ''" flex justify-center>
|
||||
<c-button @click="downloadX509DERFile()">
|
||||
Download X509 DER certificate
|
||||
</c-button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -0,0 +1,12 @@
|
||||
import { FileCertificate } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: 'Certificate/Key parser',
|
||||
path: '/certificate-key-parser',
|
||||
description: 'Parse Key and Certificate',
|
||||
keywords: ['certificate', 'key', 'parser'],
|
||||
component: () => import('./certificate-key-parser.vue'),
|
||||
icon: FileCertificate,
|
||||
createdAt: new Date('2024-02-22'),
|
||||
});
|
||||
@@ -0,0 +1,867 @@
|
||||
{"2.5.4.3": "CN",
|
||||
"2.5.4.4": "Surname",
|
||||
"2.5.4.6": "C",
|
||||
"2.5.4.7": "Cidade",
|
||||
"2.5.4.8": "Estado",
|
||||
"2.5.4.9": "StreetAddress",
|
||||
"2.5.4.10": "O",
|
||||
"2.5.4.11": "OU",
|
||||
"2.5.4.12": "Title",
|
||||
"2.5.4.20": "TelephoneNumber",
|
||||
"2.5.4.42": "GivenName",
|
||||
"2.5.29.14": "id-ce-subjectKeyIdentifier",
|
||||
"2.5.29.15": "id-ce-keyUsage",
|
||||
"2.5.29.17": "id-ce-subjectAltName",
|
||||
"2.5.29.19": "id-ce-basicConstraints",
|
||||
"2.5.29.20": "id-ce-cRLNumber",
|
||||
"2.5.29.31": "id-ce-CRLDistributionPoints",
|
||||
"2.5.29.32": "id-ce-certificatePolicies",
|
||||
"2.5.29.35": "id-ce-authorityKeyIdentifier",
|
||||
"2.5.29.37": "id-ce-extKeyUsage",
|
||||
"1.2.840.113549.1.9.1": "Email",
|
||||
"1.2.840.113549.1.1.1": "RSAEncryption",
|
||||
"1.2.840.113549.1.1.2": "md2WithRSAEncryption",
|
||||
"1.2.840.113549.1.1.4": "md5withRSAEncryption",
|
||||
"1.2.840.113549.1.1.5": "SHA-1WithRSAEncryption",
|
||||
"1.2.840.10040.4.3": "id-dsa-with-sha-1",
|
||||
"1.3.6.1.5.5.7.3.2": "id_kp_clientAuth",
|
||||
"1.3.6.1.5.5.7.3.4": "id_kp_securityemail",
|
||||
"1.3.6.1.5.5.7.2.1": "id_certificatePolicies",
|
||||
"2.16.840.1.113730.1.1": "netscape-cert-type",
|
||||
"2.16.840.1.113730.1.2": "netscape-base-url",
|
||||
"2.16.840.1.113730.1.3": "netscape-revocation-url",
|
||||
"2.16.840.1.113730.1.4": "netscape-ca-revocation-url",
|
||||
"2.16.840.1.113730.1.7": "netscape-cert-renewal-url",
|
||||
"2.16.840.1.113730.1.8": "netscape-ca-policy-url",
|
||||
"2.16.840.1.113730.1.12": "netscape-ssl-server-name",
|
||||
"2.16.840.1.113730.1.13": "netscape-comment",
|
||||
"2.16.76.1.2.1": "A1",
|
||||
"2.16.76.1.2.3": "A3",
|
||||
"2.16.76.1.2.1.16": "Certification Practice Statement pointer",
|
||||
"2.16.76.1.3.1": "Dados do cert parte 1",
|
||||
"2.16.76.1.3.5": "Dados do cert parte 2",
|
||||
"2.16.76.1.3.6": "Dados do cert parte 3",
|
||||
"0.9.2342.19200300.100.1.25": "domainComponent",
|
||||
"1.2.36.68980861.1.1.10": "Signet pilot",
|
||||
"1.2.36.68980861.1.1.11": "Signet intraNet",
|
||||
"1.2.36.68980861.1.1.2": "Signet personal",
|
||||
"1.2.36.68980861.1.1.20": "Signet securityPolicy",
|
||||
"1.2.36.68980861.1.1.3": "Signet business",
|
||||
"1.2.36.68980861.1.1.4": "Signet legal",
|
||||
"1.2.36.75878867.1.100.1.1": "Certificates Australia policyIdentifier",
|
||||
"1.2.752.34.1": "seis-cp",
|
||||
"1.2.752.34.1.1": "SEIS certificatePolicy-s10",
|
||||
"1.2.752.34.2": "SEIS pe",
|
||||
"1.2.752.34.3": "SEIS at",
|
||||
"1.2.752.34.3.1": "SEIS at-personalIdentifier",
|
||||
"1.2.840.10040.2.1": "holdinstruction-none",
|
||||
"1.2.840.10040.2.2": "holdinstruction-callissuer",
|
||||
"1.2.840.10040.2.3": "holdinstruction-reject",
|
||||
"1.2.840.10040.4.1": "dsa",
|
||||
"1.2.840.10040.4.3": "dsaWithSha1",
|
||||
"1.2.840.10045.1": "fieldType",
|
||||
"1.2.840.10045.1.1": "prime-field",
|
||||
"1.2.840.10045.1.2": "characteristic-two-field",
|
||||
"1.2.840.10045.1.2.1": "ecPublicKey",
|
||||
"1.2.840.10045.1.2.3": "characteristic-two-basis",
|
||||
"1.2.840.10045.1.2.3.1": "onBasis",
|
||||
"1.2.840.10045.1.2.3.2": "tpBasis",
|
||||
"1.2.840.10045.1.2.3.3": "ppBasis",
|
||||
"1.2.840.10045.2": "publicKeyType",
|
||||
"1.2.840.10045.2.1": "ecPublicKey",
|
||||
"1.2.840.10046.2.1": "dhPublicNumber",
|
||||
"1.2.840.113533.7": "nsn",
|
||||
"1.2.840.113533.7.65": "nsn-ce",
|
||||
"1.2.840.113533.7.65.0": "entrustVersInfo",
|
||||
"1.2.840.113533.7.66": "nsn-alg",
|
||||
"1.2.840.113533.7.66.10": "cast5CBC",
|
||||
"1.2.840.113533.7.66.11": "cast5MAC",
|
||||
"1.2.840.113533.7.66.12": "pbeWithMD5AndCAST5-CBC",
|
||||
"1.2.840.113533.7.66.13": "passwordBasedMac",
|
||||
"1.2.840.113533.7.66.3": "cast3CBC",
|
||||
"1.2.840.113533.7.67": "nsn-oc",
|
||||
"1.2.840.113533.7.67.0": "entrustUser",
|
||||
"1.2.840.113533.7.68": "nsn-at",
|
||||
"1.2.840.113533.7.68.0": "entrustCAInfo",
|
||||
"1.2.840.113533.7.68.10": "attributeCertificate",
|
||||
"1.2.840.113549.1.1": "pkcs-1",
|
||||
"1.2.840.113549.1.1.1": "rsaEncryption",
|
||||
"1.2.840.113549.1.1.2": "md2withRSAEncryption",
|
||||
"1.2.840.113549.1.1.3": "md4withRSAEncryption",
|
||||
"1.2.840.113549.1.1.4": "md5withRSAEncryption",
|
||||
"1.2.840.113549.1.1.5": "sha1withRSAEncryption",
|
||||
"1.2.840.113549.1.1.6": "rsaOAEPEncryptionSET",
|
||||
"1.2.840.113549.1.9.16.2.11": "SMIMEEncryptionKeyPreference",
|
||||
"1.2.840.113549.1.12": "pkcs-12",
|
||||
"1.2.840.113549.1.12.1": "pkcs-12-PbeIds",
|
||||
"1.2.840.113549.1.12.1.1": "pbeWithSHAAnd128BitRC4",
|
||||
"1.2.840.113549.1.12.1.2": "pbeWithSHAAnd40BitRC4",
|
||||
"1.2.840.113549.1.12.1.3": "pbeWithSHAAnd3-KeyTripleDES-CBC",
|
||||
"1.2.840.113549.1.12.1.4": "pbeWithSHAAnd2-KeyTripleDES-CBC",
|
||||
"1.2.840.113549.1.12.1.5": "pbeWithSHAAnd128BitRC2-CBC",
|
||||
"1.2.840.113549.1.12.1.6": "pbeWithSHAAnd40BitRC2-CBC",
|
||||
"1.2.840.113549.1.12.10": "pkcs-12Version1",
|
||||
"1.2.840.113549.1.12.10.1": "pkcs-12BadIds",
|
||||
"1.2.840.113549.1.12.10.1.1": "pkcs-12-keyBag",
|
||||
"1.2.840.113549.1.12.10.1.2": "pkcs-12-pkcs-8ShroudedKeyBag",
|
||||
"1.2.840.113549.1.12.10.1.3": "pkcs-12-certBag",
|
||||
"1.2.840.113549.1.12.10.1.4": "pkcs-12-crlBag",
|
||||
"1.2.840.113549.1.12.10.1.5": "pkcs-12-secretBag",
|
||||
"1.2.840.113549.1.12.10.1.6": "pkcs-12-safeContentsBag",
|
||||
"1.2.840.113549.1.12.2": "pkcs-12-ESPVKID",
|
||||
"1.2.840.113549.1.12.2.1": "pkcs-12-PKCS8KeyShrouding",
|
||||
"1.2.840.113549.1.12.3": "pkcs-12-BagIds",
|
||||
"1.2.840.113549.1.12.3.1": "pkcs-12-keyBagId",
|
||||
"1.2.840.113549.1.12.3.2": "pkcs-12-certAndCRLBagId",
|
||||
"1.2.840.113549.1.12.3.3": "pkcs-12-secretBagId",
|
||||
"1.2.840.113549.1.12.3.4": "pkcs-12-safeContentsId",
|
||||
"1.2.840.113549.1.12.3.5": "pkcs-12-pkcs-8ShroudedKeyBagId",
|
||||
"1.2.840.113549.1.12.4": "pkcs-12-CertBagID",
|
||||
"1.2.840.113549.1.12.4.1": "pkcs-12-X509CertCRLBagID",
|
||||
"1.2.840.113549.1.12.4.2": "pkcs-12-SDSICertBagID",
|
||||
"1.2.840.113549.1.12.5": "pkcs-12-OID",
|
||||
"1.2.840.113549.1.12.5.1": "pkcs-12-PBEID",
|
||||
"1.2.840.113549.1.12.5.1.1": "pkcs-12-PBEWithSha1And128BitRC4",
|
||||
"1.2.840.113549.1.12.5.1.2": "pkcs-12-PBEWithSha1And40BitRC4",
|
||||
"1.2.840.113549.1.12.5.1.3": "pkcs-12-PBEWithSha1AndTripleDESCBC",
|
||||
"1.2.840.113549.1.12.5.1.4": "pkcs-12-PBEWithSha1And128BitRC2CBC",
|
||||
"1.2.840.113549.1.12.5.1.5": "pkcs-12-PBEWithSha1And40BitRC2CBC",
|
||||
"1.2.840.113549.1.12.5.1.6": "pkcs-12-PBEWithSha1AndRC4",
|
||||
"1.2.840.113549.1.12.5.1.7": "pkcs-12-PBEWithSha1AndRC2CBC",
|
||||
"1.2.840.113549.1.12.5.2": "pkcs-12-EnvelopingID",
|
||||
"1.2.840.113549.1.12.5.2.1": "pkcs-12-RSAEncryptionWith128BitRC4",
|
||||
"1.2.840.113549.1.12.5.2.2": "pkcs-12-RSAEncryptionWith40BitRC4",
|
||||
"1.2.840.113549.1.12.5.2.3": "pkcs-12-RSAEncryptionWithTripleDES",
|
||||
"1.2.840.113549.1.12.5.3": "pkcs-12-SignatureID",
|
||||
"1.2.840.113549.1.12.5.3.1": "pkcs-12-RSASignatureWithSHA1Digest",
|
||||
"1.2.840.113549.1.3": "pkcs-3",
|
||||
"1.2.840.113549.1.3.1": "dhKeyAgreement",
|
||||
"1.2.840.113549.1.5": "pkcs-5",
|
||||
"1.2.840.113549.1.5.1": "pbeWithMD2AndDES-CBC",
|
||||
"1.2.840.113549.1.5.10": "pbeWithSHAAndDES-CBC",
|
||||
"1.2.840.113549.1.5.3": "pbeWithMD5AndDES-CBC",
|
||||
"1.2.840.113549.1.5.4": "pbeWithMD2AndRC2-CBC",
|
||||
"1.2.840.113549.1.5.6": "pbeWithMD5AndRC2-CBC",
|
||||
"1.2.840.113549.1.5.9": "pbeWithMD5AndXOR",
|
||||
"1.2.840.113549.1.7": "pkcs-7",
|
||||
"1.2.840.113549.1.7.1": "data",
|
||||
"1.2.840.113549.1.7.2": "signedData",
|
||||
"1.2.840.113549.1.7.3": "envelopedData",
|
||||
"1.2.840.113549.1.7.4": "signedAndEnvelopedData",
|
||||
"1.2.840.113549.1.7.5": "digestData",
|
||||
"1.2.840.113549.1.7.6": "encryptedData",
|
||||
"1.2.840.113549.1.7.7": "dataWithAttributes",
|
||||
"1.2.840.113549.1.7.8": "encryptedPrivateKeyInfo",
|
||||
"1.2.840.113549.1.9": "pkcs-9",
|
||||
"1.2.840.113549.1.9.1": "emailAddress",
|
||||
"1.2.840.113549.1.9.10": "issuerAndSerialNumber",
|
||||
"1.2.840.113549.1.9.11": "passwordCheck",
|
||||
"1.2.840.113549.1.9.12": "publicKey",
|
||||
"1.2.840.113549.1.9.13": "signingDescription",
|
||||
"1.2.840.113549.1.9.14": "extensionReq",
|
||||
"1.2.840.113549.1.9.15": "sMIMECapabilities",
|
||||
"1.2.840.113549.1.9.15.1": "preferSignedData",
|
||||
"1.2.840.113549.1.9.15.2": "canNotDecryptAny",
|
||||
"1.2.840.113549.1.9.15.3": "receiptRequest",
|
||||
"1.2.840.113549.1.9.15.4": "receipt",
|
||||
"1.2.840.113549.1.9.15.5": "contentHints",
|
||||
"1.2.840.113549.1.9.15.6": "mlExpansionHistory",
|
||||
"1.2.840.113549.1.9.16": "id-sMIME",
|
||||
"1.2.840.113549.1.9.16.0": "id-mod",
|
||||
"1.2.840.113549.1.9.16.0.1": "id-mod-cms",
|
||||
"1.2.840.113549.1.9.16.0.2": "id-mod-ess",
|
||||
"1.2.840.113549.1.9.16.1": "id-ct",
|
||||
"1.2.840.113549.1.9.16.1.1": "id-ct-receipt",
|
||||
"1.2.840.113549.1.9.16.2": "id-aa",
|
||||
"1.2.840.113549.1.9.16.2.1": "id-aa-receiptRequest",
|
||||
"1.2.840.113549.1.9.16.2.2": "id-aa-securityLabel",
|
||||
"1.2.840.113549.1.9.16.2.3": "id-aa-mlExpandHistory",
|
||||
"1.2.840.113549.1.9.16.2.4": "id-aa-contentHint",
|
||||
"1.2.840.113549.1.9.2": "unstructuredName",
|
||||
"1.2.840.113549.1.9.20": "friendlyName",
|
||||
"1.2.840.113549.1.9.21": "localKeyID",
|
||||
"1.2.840.113549.1.9.22": "certTypes",
|
||||
"1.2.840.113549.1.9.22.1": "x509Certificate",
|
||||
"1.2.840.113549.1.9.22.2": "sdsiCertificate",
|
||||
"1.2.840.113549.1.9.23": "crlTypes",
|
||||
"1.2.840.113549.1.9.23.1": "x509Crl",
|
||||
"1.2.840.113549.1.9.3": "contentType",
|
||||
"1.2.840.113549.1.9.4": "messageDigest",
|
||||
"1.2.840.113549.1.9.5": "signingTime",
|
||||
"1.2.840.113549.1.9.6": "countersignature",
|
||||
"1.2.840.113549.1.9.7": "challengePassword",
|
||||
"1.2.840.113549.1.9.8": "unstructuredAddress",
|
||||
"1.2.840.113549.1.9.9": "extendedCertificateAttributes",
|
||||
"1.2.840.113549.2": "digestAlgorithm",
|
||||
"1.2.840.113549.2.2": "md2",
|
||||
"1.2.840.113549.2.4": "md4",
|
||||
"1.2.840.113549.2.5": "md5",
|
||||
"1.2.840.113549.3": "encryptionAlgorithm",
|
||||
"1.2.840.113549.3.10": "desCDMF",
|
||||
"1.2.840.113549.3.2": "rc2CBC",
|
||||
"1.2.840.113549.3.3": "rc2ECB",
|
||||
"1.2.840.113549.3.4": "rc4",
|
||||
"1.2.840.113549.3.5": "rc4WithMAC",
|
||||
"1.2.840.113549.3.6": "DESX-CBC",
|
||||
"1.2.840.113549.3.7": "DES-EDE3-CBC",
|
||||
"1.2.840.113549.3.8": "RC5CBC",
|
||||
"1.2.840.113549.3.9": "RC5-CBCPad",
|
||||
"1.2.840.113556.4.3": "microsoftExcel",
|
||||
"1.2.840.113556.4.4": "titledWithOID",
|
||||
"1.2.840.113556.4.5": "microsoftPowerPoint",
|
||||
"1.3.133.16.840.9.84": "x9-84",
|
||||
"1.3.133.16.840.9.84.0": "x9-84-Module",
|
||||
"1.3.133.16.840.9.84.0.1": "x9-84-Biometrics",
|
||||
"1.3.133.16.840.9.84.0.2": "x9-84-CMS",
|
||||
"1.3.133.16.840.9.84.0.3": "x9-84-Identifiers",
|
||||
"1.3.133.16.840.9.84.1": "biometric",
|
||||
"1.3.133.16.840.9.84.1.0": "id-unknown-Type",
|
||||
"1.3.133.16.840.9.84.1.1": "id-body-Odor",
|
||||
"1.3.133.16.840.9.84.1.10": "id-palm",
|
||||
"1.3.133.16.840.9.84.1.11": "id-retina",
|
||||
"1.3.133.16.840.9.84.1.12": "id-signature",
|
||||
"1.3.133.16.840.9.84.1.13": "id-speech-Pattern",
|
||||
"1.3.133.16.840.9.84.1.14": "id-thermal-Image",
|
||||
"1.3.133.16.840.9.84.1.15": "id-vein-Pattern",
|
||||
"1.3.133.16.840.9.84.1.16": "id-thermal-Face-Image",
|
||||
"1.3.133.16.840.9.84.1.17": "id-thermal-Hand-Image",
|
||||
"1.3.133.16.840.9.84.1.18": "id-lip-Movement",
|
||||
"1.3.133.16.840.9.84.1.19": "id-gait",
|
||||
"1.3.133.16.840.9.84.1.2": "id-dna",
|
||||
"1.3.133.16.840.9.84.1.3": "id-ear-Shape",
|
||||
"1.3.133.16.840.9.84.1.4": "id-facial-Features",
|
||||
"1.3.133.16.840.9.84.1.5": "id-finger-Image",
|
||||
"1.3.133.16.840.9.84.1.6": "id-finger-Geometry",
|
||||
"1.3.133.16.840.9.84.1.7": "id-hand-Geometry",
|
||||
"1.3.133.16.840.9.84.1.8": "id-iris-Features",
|
||||
"1.3.133.16.840.9.84.1.9": "id-keystroke-Dynamics",
|
||||
"1.3.133.16.840.9.84.2": "processing-algorithm",
|
||||
"1.3.133.16.840.9.84.3": "matching-method",
|
||||
"1.3.133.16.840.9.84.4": "format-Owner",
|
||||
"1.3.133.16.840.9.84.4.0": "cbeff-Owner",
|
||||
"1.3.133.16.840.9.84.4.1": "ibia-Owner",
|
||||
"1.3.133.16.840.9.84.4.1.1": "id-ibia-SAFLINK",
|
||||
"1.3.133.16.840.9.84.4.1.10": "id-ibia-SecuGen",
|
||||
"1.3.133.16.840.9.84.4.1.11": "id-ibia-PreciseBiometric",
|
||||
"1.3.133.16.840.9.84.4.1.12": "id-ibia-Identix",
|
||||
"1.3.133.16.840.9.84.4.1.13": "id-ibia-DERMALOG",
|
||||
"1.3.133.16.840.9.84.4.1.14": "id-ibia-LOGICO",
|
||||
"1.3.133.16.840.9.84.4.1.15": "id-ibia-NIST",
|
||||
"1.3.133.16.840.9.84.4.1.16": "id-ibia-A3Vision",
|
||||
"1.3.133.16.840.9.84.4.1.17": "id-ibia-NEC",
|
||||
"1.3.133.16.840.9.84.4.1.18": "id-ibia-STMicroelectronics",
|
||||
"1.3.133.16.840.9.84.4.1.2": "id-ibia-Bioscrypt",
|
||||
"1.3.133.16.840.9.84.4.1.3": "id-ibia-Visionics",
|
||||
"1.3.133.16.840.9.84.4.1.4": "id-ibia-InfineonTechnologiesAG",
|
||||
"1.3.133.16.840.9.84.4.1.5": "id-ibia-IridianTechnologies",
|
||||
"1.3.133.16.840.9.84.4.1.6": "id-ibia-Veridicom",
|
||||
"1.3.133.16.840.9.84.4.1.7": "id-ibia-CyberSIGN",
|
||||
"1.3.133.16.840.9.84.4.1.8": "id-ibia-eCryp.",
|
||||
"1.3.133.16.840.9.84.4.1.9": "id-ibia-FingerprintCardsAB",
|
||||
"1.3.133.16.840.9.84.4.2": "x9-Owner",
|
||||
"1.3.14.2.26.5": "sha",
|
||||
"1.3.14.3.2.1.1": "rsa",
|
||||
"1.3.14.3.2.10": "desMAC",
|
||||
"1.3.14.3.2.11": "rsaSignature",
|
||||
"1.3.14.3.2.12": "dsa",
|
||||
"1.3.14.3.2.13": "dsaWithSHA",
|
||||
"1.3.14.3.2.14": "mdc2WithRSASignature",
|
||||
"1.3.14.3.2.15": "shaWithRSASignature",
|
||||
"1.3.14.3.2.16": "dhWithCommonModulus",
|
||||
"1.3.14.3.2.17": "desEDE",
|
||||
"1.3.14.3.2.18": "sha",
|
||||
"1.3.14.3.2.19": "mdc-2",
|
||||
"1.3.14.3.2.2": "md4WitRSA",
|
||||
"1.3.14.3.2.2.1": "sqmod-N",
|
||||
"1.3.14.3.2.20": "dsaCommon",
|
||||
"1.3.14.3.2.21": "dsaCommonWithSHA",
|
||||
"1.3.14.3.2.22": "rsaKeyTransport",
|
||||
"1.3.14.3.2.23": "keyed-hash-seal",
|
||||
"1.3.14.3.2.24": "md2WithRSASignature",
|
||||
"1.3.14.3.2.25": "md5WithRSASignature",
|
||||
"1.3.14.3.2.26": "sha1",
|
||||
"1.3.14.3.2.27": "dsaWithSHA1",
|
||||
"1.3.14.3.2.28": "dsaWithCommonSHA1",
|
||||
"1.3.14.3.2.29": "sha-1WithRSAEncryption",
|
||||
"1.3.14.3.2.3": "md5WithRSA",
|
||||
"1.3.14.3.2.3.1": "sqmod-NwithRSA",
|
||||
"1.3.14.3.2.4": "md4WithRSAEncryption",
|
||||
"1.3.14.3.2.6": "desECB",
|
||||
"1.3.14.3.2.7": "desCBC",
|
||||
"1.3.14.3.2.8": "desOFB",
|
||||
"1.3.14.3.2.9": "desCFB",
|
||||
"1.3.14.3.3.1": "simple-strong-auth-mechanism",
|
||||
"1.3.14.7.2.1.1": "ElGamal",
|
||||
"1.3.14.7.2.3.1": "md2WithRSA",
|
||||
"1.3.14.7.2.3.2": "md2WithElGamal",
|
||||
"1.3.36.3": "algorithm",
|
||||
"1.3.36.3.1": "encryptionAlgorithm",
|
||||
"1.3.36.3.1.1": "des",
|
||||
"1.3.36.3.1.1.1.1": "desECBPad",
|
||||
"1.3.36.3.1.1.1.1.1": "desECBPadISO",
|
||||
"1.3.36.3.1.1.2.1": "desCBCPad",
|
||||
"1.3.36.3.1.1.2.1.1": "desCBCPadISO",
|
||||
"1.3.36.3.1.2": "idea",
|
||||
"1.3.36.3.1.2.1": "ideaECB",
|
||||
"1.3.36.3.1.2.1.1": "ideaECBPad",
|
||||
"1.3.36.3.1.2.1.1.1": "ideaECBPadISO",
|
||||
"1.3.36.3.1.2.2": "ideaCBC",
|
||||
"1.3.36.3.1.2.2.1": "ideaCBCPad",
|
||||
"1.3.36.3.1.2.2.1.1": "ideaCBCPadISO",
|
||||
"1.3.36.3.1.2.3": "ideaOFB",
|
||||
"1.3.36.3.1.2.4": "ideaCFB",
|
||||
"1.3.36.3.1.3": "des-3",
|
||||
"1.3.36.3.1.3.1.1": "des-3ECBPad",
|
||||
"1.3.36.3.1.3.1.1.1": "des-3ECBPadISO",
|
||||
"1.3.36.3.1.3.2.1": "des-3CBCPad",
|
||||
"1.3.36.3.1.3.2.1.1": "des-3CBCPadISO",
|
||||
"1.3.36.3.2": "hashAlgorithm",
|
||||
"1.3.36.3.2.1": "ripemd160",
|
||||
"1.3.36.3.2.2": "ripemd128",
|
||||
"1.3.36.3.2.3": "ripemd256",
|
||||
"1.3.36.3.2.4": "mdc2singleLength",
|
||||
"1.3.36.3.2.5": "mdc2doubleLength",
|
||||
"1.3.36.3.3": "signatureAlgorithm",
|
||||
"1.3.36.3.3.1": "rsa",
|
||||
"1.3.36.3.3.1.1": "rsaMitSHA-1",
|
||||
"1.3.36.3.3.1.2": "rsaMitRIPEMD160",
|
||||
"1.3.36.3.3.2": "ellipticCurve",
|
||||
"1.3.36.3.4": "signatureScheme",
|
||||
"1.3.36.3.4.1": "iso9796-1",
|
||||
"1.3.36.3.4.2.1": "iso9796-2",
|
||||
"1.3.36.3.4.2.2": "iso9796-2rsa",
|
||||
"1.3.36.4": "attribute",
|
||||
"1.3.36.5": "policy",
|
||||
"1.3.36.6": "api",
|
||||
"1.3.36.6.1": "manufacturerSpecific",
|
||||
"1.3.36.6.2": "functionalitySpecific",
|
||||
"1.3.36.7": "api",
|
||||
"1.3.36.7.1": "keyAgreement",
|
||||
"1.3.36.7.2": "keyTransport",
|
||||
"1.3.6.1.4.1.2428.10.1.1": "UNINETT policyIdentifier",
|
||||
"1.3.6.1.4.1.2712.10": "ICE-TEL policyIdentifier",
|
||||
"1.3.6.1.4.1.3029.32.1": "cryptlibEnvelope",
|
||||
"1.3.6.1.4.1.3029.32.2": "cryptlibPrivateKey",
|
||||
"1.3.6.1.4.1.311": "Microsoft OID",
|
||||
"1.3.6.1.4.1.311.10": "Crypto 2.0",
|
||||
"1.3.6.1.4.1.311.10.1": "certTrustList",
|
||||
"1.3.6.1.4.1.311.10.1.1": "szOID_SORTED_CTL",
|
||||
"1.3.6.1.4.1.311.10.10": "Microsoft CMC OIDs",
|
||||
"1.3.6.1.4.1.311.10.10.1": "szOID_CMC_ADD_ATTRIBUTES",
|
||||
"1.3.6.1.4.1.311.10.11": "Microsoft certificate property OIDs",
|
||||
"1.3.6.1.4.1.311.10.11.1": "szOID_CERT_PROP_ID_PREFIX",
|
||||
"1.3.6.1.4.1.311.10.12": "CryptUI",
|
||||
"1.3.6.1.4.1.311.10.12.1": "szOID_ANY_APPLICATION_POLICY",
|
||||
"1.3.6.1.4.1.311.10.2": "nextUpdateLocation",
|
||||
"1.3.6.1.4.1.311.10.3.1": "certTrustListSigning",
|
||||
"1.3.6.1.4.1.311.10.3.10": "szOID_KP_QUALIFIED_SUBORDINATION",
|
||||
"1.3.6.1.4.1.311.10.3.11": "szOID_KP_KEY_RECOVERY",
|
||||
"1.3.6.1.4.1.311.10.3.12": "szOID_KP_DOCUMENT_SIGNING",
|
||||
"1.3.6.1.4.1.311.10.3.2": "timeStampSigning",
|
||||
"1.3.6.1.4.1.311.10.3.3": "serverGatedCrypto",
|
||||
"1.3.6.1.4.1.311.10.3.3.1": "szOID_SERIALIZED",
|
||||
"1.3.6.1.4.1.311.10.3.4": "encryptedFileSystem",
|
||||
"1.3.6.1.4.1.311.10.3.4.1": "szOID_EFS_RECOVERY",
|
||||
"1.3.6.1.4.1.311.10.3.5": "szOID_WHQL_CRYPTO",
|
||||
"1.3.6.1.4.1.311.10.3.6": "szOID_NT5_CRYPTO",
|
||||
"1.3.6.1.4.1.311.10.3.7": "szOID_OEM_WHQL_CRYPTO",
|
||||
"1.3.6.1.4.1.311.10.3.8": "szOID_EMBEDDED_NT_CRYPTO",
|
||||
"1.3.6.1.4.1.311.10.3.9": "szOID_ROOT_LIST_SIGNER",
|
||||
"1.3.6.1.4.1.311.10.4.1": "yesnoTrustAttr",
|
||||
"1.3.6.1.4.1.311.10.5.1": "szOID_DRM",
|
||||
"1.3.6.1.4.1.311.10.5.2": "szOID_DRM_INDIVIDUALIZATION",
|
||||
"1.3.6.1.4.1.311.10.6.1": "szOID_LICENSES",
|
||||
"1.3.6.1.4.1.311.10.6.2": "szOID_LICENSE_SERVER",
|
||||
"1.3.6.1.4.1.311.10.7": "szOID_MICROSOFT_RDN_PREFIX",
|
||||
"1.3.6.1.4.1.311.10.7.1": "szOID_KEYID_RDN",
|
||||
"1.3.6.1.4.1.311.10.8.1": "szOID_REMOVE_CERTIFICATE",
|
||||
"1.3.6.1.4.1.311.10.9.1": "szOID_CROSS_CERT_DIST_POINTS",
|
||||
"1.3.6.1.4.1.311.12": "Catalog",
|
||||
"1.3.6.1.4.1.311.12.1.1": "szOID_CATALOG_LIST",
|
||||
"1.3.6.1.4.1.311.12.1.2": "szOID_CATALOG_LIST_MEMBER",
|
||||
"1.3.6.1.4.1.311.12.2.1": "CAT_NAMEVALUE_OBJID",
|
||||
"1.3.6.1.4.1.311.12.2.2": "CAT_MEMBERINFO_OBJID",
|
||||
"1.3.6.1.4.1.311.13": "Microsoft PKCS10 OIDs",
|
||||
"1.3.6.1.4.1.311.13.1": "szOID_RENEWAL_CERTIFICATE",
|
||||
"1.3.6.1.4.1.311.13.2.1": "szOID_ENROLLMENT_NAME_VALUE_PAIR",
|
||||
"1.3.6.1.4.1.311.13.2.2": "szOID_ENROLLMENT_CSP_PROVIDER",
|
||||
"1.3.6.1.4.1.311.13.2.3": "OS Version",
|
||||
"1.3.6.1.4.1.311.15": "Microsoft Java",
|
||||
"1.3.6.1.4.1.311.16": "Microsoft Outlook/Exchange",
|
||||
"1.3.6.1.4.1.311.16.4": "Outlook Express",
|
||||
"1.3.6.1.4.1.311.17": "Microsoft PKCS12 attributes",
|
||||
"1.3.6.1.4.1.311.17.1": "szOID_LOCAL_MACHINE_KEYSET",
|
||||
"1.3.6.1.4.1.311.18": "Microsoft Hydra",
|
||||
"1.3.6.1.4.1.311.19": "Microsoft ISPU Test",
|
||||
"1.3.6.1.4.1.311.2": "Authenticode",
|
||||
"1.3.6.1.4.1.311.2.1.10": "spcAgencyInfo",
|
||||
"1.3.6.1.4.1.311.2.1.11": "spcStatementType",
|
||||
"1.3.6.1.4.1.311.2.1.12": "spcSpOpusInfo",
|
||||
"1.3.6.1.4.1.311.2.1.14": "certExtensions",
|
||||
"1.3.6.1.4.1.311.2.1.15": "spcPelmageData",
|
||||
"1.3.6.1.4.1.311.2.1.18": "SPC_RAW_FILE_DATA_OBJID",
|
||||
"1.3.6.1.4.1.311.2.1.19": "SPC_STRUCTURED_STORAGE_DATA_OBJID",
|
||||
"1.3.6.1.4.1.311.2.1.20": "spcLink",
|
||||
"1.3.6.1.4.1.311.2.1.21": "individualCodeSigning",
|
||||
"1.3.6.1.4.1.311.2.1.22": "commercialCodeSigning",
|
||||
"1.3.6.1.4.1.311.2.1.25": "spcLink",
|
||||
"1.3.6.1.4.1.311.2.1.26": "spcMinimalCriteriaInfo",
|
||||
"1.3.6.1.4.1.311.2.1.27": "spcFinancialCriteriaInfo",
|
||||
"1.3.6.1.4.1.311.2.1.28": "spcLink",
|
||||
"1.3.6.1.4.1.311.2.1.29": "SPC_HASH_INFO_OBJID",
|
||||
"1.3.6.1.4.1.311.2.1.30": "SPC_SIPINFO_OBJID",
|
||||
"1.3.6.1.4.1.311.2.1.4": "spcIndirectDataContext",
|
||||
"1.3.6.1.4.1.311.2.2": "CTL for Software Publishers Trusted CAs",
|
||||
"1.3.6.1.4.1.311.2.2.1": "szOID_TRUSTED_CODESIGNING_CA_LIST",
|
||||
"1.3.6.1.4.1.311.2.2.2": "szOID_TRUSTED_CLIENT_AUTH_CA_LIST",
|
||||
"1.3.6.1.4.1.311.2.2.3": "szOID_TRUSTED_SERVER_AUTH_CA_LIST",
|
||||
"1.3.6.1.4.1.311.20": "Microsoft Enrollment Infrastructure",
|
||||
"1.3.6.1.4.1.311.20.1": "szOID_AUTO_ENROLL_CTL_USAGE",
|
||||
"1.3.6.1.4.1.311.20.2": "szOID_ENROLL_CERTTYPE_EXTENSION",
|
||||
"1.3.6.1.4.1.311.20.2.1": "szOID_ENROLLMENT_AGENT",
|
||||
"1.3.6.1.4.1.311.20.2.2": "szOID_KP_SMARTCARD_LOGON",
|
||||
"1.3.6.1.4.1.311.20.2.3": "szOID_NT_PRINCIPAL_NAME",
|
||||
"1.3.6.1.4.1.311.20.3": "szOID_CERT_MANIFOLD",
|
||||
"1.3.6.1.4.1.311.21": "Microsoft CertSrv Infrastructure",
|
||||
"1.3.6.1.4.1.311.21.1": "szOID_CERTSRV_CA_VERSION",
|
||||
"1.3.6.1.4.1.311.21.20": "Client Information",
|
||||
"1.3.6.1.4.1.311.25": "Microsoft Directory Service",
|
||||
"1.3.6.1.4.1.311.25.1": "szOID_NTDS_REPLICATION",
|
||||
"1.3.6.1.4.1.311.3": "Time Stamping",
|
||||
"1.3.6.1.4.1.311.3.2.1": "SPC_TIME_STAMP_REQUEST_OBJID",
|
||||
"1.3.6.1.4.1.311.30": "IIS",
|
||||
"1.3.6.1.4.1.311.31": "Windows updates and service packs",
|
||||
"1.3.6.1.4.1.311.31.1": "szOID_PRODUCT_UPDATE",
|
||||
"1.3.6.1.4.1.311.4": "Permissions",
|
||||
"1.3.6.1.4.1.311.40": "Fonts",
|
||||
"1.3.6.1.4.1.311.41": "Microsoft Licensing and Registration",
|
||||
"1.3.6.1.4.1.311.42": "Microsoft Corporate PKI (ITG)",
|
||||
"1.3.6.1.4.1.311.88": "CAPICOM",
|
||||
"1.3.6.1.4.1.311.88.1": "szOID_CAPICOM_VERSION",
|
||||
"1.3.6.1.4.1.311.88.2": "szOID_CAPICOM_ATTRIBUTE",
|
||||
"1.3.6.1.4.1.311.88.2.1": "szOID_CAPICOM_DOCUMENT_NAME",
|
||||
"1.3.6.1.4.1.311.88.2.2": "szOID_CAPICOM_DOCUMENT_DESCRIPTION",
|
||||
"1.3.6.1.4.1.311.88.3": "szOID_CAPICOM_ENCRYPTED_DATA",
|
||||
"1.3.6.1.4.1.311.88.3.1": "szOID_CAPICOM_ENCRYPTED_CONTENT",
|
||||
"1.3.6.1.5.5.7": "pkix",
|
||||
"1.3.6.1.5.5.7.1": "privateExtension",
|
||||
"1.3.6.1.5.5.7.1.1": "authorityInfoAccess",
|
||||
"1.3.6.1.5.5.7.12.2": "CMC Data",
|
||||
"1.3.6.1.5.5.7.2": "policyQualifierIds",
|
||||
"1.3.6.1.5.5.7.2.1": "cps",
|
||||
"1.3.6.1.5.5.7.2.2": "unotice",
|
||||
"1.3.6.1.5.5.7.3": "keyPurpose",
|
||||
"1.3.6.1.5.5.7.3.1": "serverAuth",
|
||||
"1.3.6.1.5.5.7.3.2": "clientAuth",
|
||||
"1.3.6.1.5.5.7.3.3": "codeSigning",
|
||||
"1.3.6.1.5.5.7.3.4": "emailProtection",
|
||||
"1.3.6.1.5.5.7.3.5": "ipsecEndSystem",
|
||||
"1.3.6.1.5.5.7.3.6": "ipsecTunnel",
|
||||
"1.3.6.1.5.5.7.3.7": "ipsecUser",
|
||||
"1.3.6.1.5.5.7.3.8": "timeStamping",
|
||||
"1.3.6.1.5.5.7.4": "cmpInformationTypes",
|
||||
"1.3.6.1.5.5.7.4.1": "caProtEncCert",
|
||||
"1.3.6.1.5.5.7.4.2": "signKeyPairTypes",
|
||||
"1.3.6.1.5.5.7.4.3": "encKeyPairTypes",
|
||||
"1.3.6.1.5.5.7.4.4": "preferredSymmAlg",
|
||||
"1.3.6.1.5.5.7.4.5": "caKeyUpdateInfo",
|
||||
"1.3.6.1.5.5.7.4.6": "currentCRL",
|
||||
"1.3.6.1.5.5.7.48.1": "ocsp",
|
||||
"1.3.6.1.5.5.7.48.2": "caIssuers",
|
||||
"1.3.6.1.5.5.8.1.1": "HMAC-MD5",
|
||||
"1.3.6.1.5.5.8.1.2": "HMAC-SHA",
|
||||
"2.16.840.1.101.2.1.1.1": "sdnsSignatureAlgorithm",
|
||||
"2.16.840.1.101.2.1.1.10": "mosaicKeyManagementAlgorithm",
|
||||
"2.16.840.1.101.2.1.1.11": "sdnsKMandSigAlgorithm",
|
||||
"2.16.840.1.101.2.1.1.12": "mosaicKMandSigAlgorithm",
|
||||
"2.16.840.1.101.2.1.1.13": "SuiteASignatureAlgorithm",
|
||||
"2.16.840.1.101.2.1.1.14": "SuiteAConfidentialityAlgorithm",
|
||||
"2.16.840.1.101.2.1.1.15": "SuiteAIntegrityAlgorithm",
|
||||
"2.16.840.1.101.2.1.1.16": "SuiteATokenProtectionAlgorithm",
|
||||
"2.16.840.1.101.2.1.1.17": "SuiteAKeyManagementAlgorithm",
|
||||
"2.16.840.1.101.2.1.1.18": "SuiteAKMandSigAlgorithm",
|
||||
"2.16.840.1.101.2.1.1.19": "mosaicUpdatedSigAlgorithm",
|
||||
"2.16.840.1.101.2.1.1.2": "mosaicSignatureAlgorithm",
|
||||
"2.16.840.1.101.2.1.1.20": "mosaicKMandUpdSigAlgorithms",
|
||||
"2.16.840.1.101.2.1.1.21": "mosaicUpdatedIntegAlgorithm",
|
||||
"2.16.840.1.101.2.1.1.22": "mosaicKeyEncryptionAlgorithm",
|
||||
"2.16.840.1.101.2.1.1.3": "sdnsConfidentialityAlgorithm",
|
||||
"2.16.840.1.101.2.1.1.4": "mosaicConfidentialityAlgorithm",
|
||||
"2.16.840.1.101.2.1.1.5": "sdnsIntegrityAlgorithm",
|
||||
"2.16.840.1.101.2.1.1.6": "mosaicIntegrityAlgorithm",
|
||||
"2.16.840.1.101.2.1.1.7": "sdnsTokenProtectionAlgorithm",
|
||||
"2.16.840.1.101.2.1.1.8": "mosaicTokenProtectionAlgorithm",
|
||||
"2.16.840.1.101.2.1.1.9": "sdnsKeyManagementAlgorithm",
|
||||
"2.16.840.1.113730.1": "cert-extension",
|
||||
"2.16.840.1.113730.1.1": "netscape-cert-type",
|
||||
"2.16.840.1.113730.1.10": "EntityLogo",
|
||||
"2.16.840.1.113730.1.11": "UserPicture",
|
||||
"2.16.840.1.113730.1.12": "netscape-ssl-server-name",
|
||||
"2.16.840.1.113730.1.13": "netscape-comment",
|
||||
"2.16.840.1.113730.1.2": "netscape-base-url",
|
||||
"2.16.840.1.113730.1.3": "netscape-revocation-url",
|
||||
"2.16.840.1.113730.1.4": "netscape-ca-revocation-url",
|
||||
"2.16.840.1.113730.1.7": "netscape-cert-renewal-url",
|
||||
"2.16.840.1.113730.1.8": "netscape-ca-policy-url",
|
||||
"2.16.840.1.113730.1.9": "HomePage-url",
|
||||
"2.16.840.1.113730.2": "data-type",
|
||||
"2.16.840.1.113730.2.1": "GIF",
|
||||
"2.16.840.1.113730.2.2": "JPEG",
|
||||
"2.16.840.1.113730.2.3": "URL",
|
||||
"2.16.840.1.113730.2.4": "HTML",
|
||||
"2.16.840.1.113730.2.5": "netscape-cert-sequence",
|
||||
"2.16.840.1.113730.2.6": "netscape-cert-url",
|
||||
"2.16.840.1.113730.3": "directory",
|
||||
"2.16.840.1.113730.4.1": "serverGatedCrypto",
|
||||
"2.16.840.1.113733.1.6.3": "Unknown Verisign extension",
|
||||
"2.16.840.1.113733.1.6.6": "Unknown Verisign extension",
|
||||
"2.16.840.1.113733.1.7.1.1": "Verisign certificatePolicy",
|
||||
"2.16.840.1.113733.1.7.1.1.1": "Unknown Verisign policy qualifier",
|
||||
"2.16.840.1.113733.1.7.1.1.2": "Unknown Verisign policy qualifier",
|
||||
"2.23.133": "TCPA",
|
||||
"2.23.133.1": "tcpa_specVersion",
|
||||
"2.23.133.2": "tcpa_attribute",
|
||||
"2.23.133.2.1": "tcpa_at_tpmManufacturer",
|
||||
"2.23.133.2.10": "tcpa_at_securityQualities",
|
||||
"2.23.133.2.11": "tcpa_at_tpmProtectionProfile",
|
||||
"2.23.133.2.12": "tcpa_at_tpmSecurityTarget",
|
||||
"2.23.133.2.13": "tcpa_at_foundationProtectionProfile",
|
||||
"2.23.133.2.14": "tcpa_at_foundationSecurityTarget",
|
||||
"2.23.133.2.15": "tcpa_at_tpmIdLabel",
|
||||
"2.23.133.2.2": "tcpa_at_tpmModel",
|
||||
"2.23.133.2.3": "tcpa_at_tpmVersion",
|
||||
"2.23.133.2.4": "tcpa_at_platformManufacturer",
|
||||
"2.23.133.2.5": "tcpa_at_platformModel",
|
||||
"2.23.133.2.6": "tcpa_at_platformVersion",
|
||||
"2.23.133.2.7": "tcpa_at_componentManufacturer",
|
||||
"2.23.133.2.8": "tcpa_at_componentModel",
|
||||
"2.23.133.2.9": "tcpa_at_componentVersion",
|
||||
"2.23.133.3": "tcpa_protocol",
|
||||
"2.23.133.3.1": "tcpa_prtt_tpmIdProtocol",
|
||||
"2.23.42.0": "contentType",
|
||||
"2.23.42.0.0": "PANData",
|
||||
"2.23.42.0.1": "PANToken",
|
||||
"2.23.42.0.2": "PANOnly",
|
||||
"2.23.42.1": "msgExt",
|
||||
"2.23.42.10": "national",
|
||||
"2.23.42.10.192": "Japan",
|
||||
"2.23.42.2": "field",
|
||||
"2.23.42.2.0": "fullName",
|
||||
"2.23.42.2.1": "givenName",
|
||||
"2.23.42.2.10": "amount",
|
||||
"2.23.42.2.2": "familyName",
|
||||
"2.23.42.2.3": "birthFamilyName",
|
||||
"2.23.42.2.4": "placeName",
|
||||
"2.23.42.2.5": "identificationNumber",
|
||||
"2.23.42.2.6": "month",
|
||||
"2.23.42.2.7": "date",
|
||||
"2.23.42.2.7.11": "accountNumber",
|
||||
"2.23.42.2.7.12": "passPhrase",
|
||||
"2.23.42.2.8": "address",
|
||||
"2.23.42.2.9": "telephone",
|
||||
"2.23.42.3": "attribute",
|
||||
"2.23.42.3.0": "cert",
|
||||
"2.23.42.3.0.0": "rootKeyThumb",
|
||||
"2.23.42.3.0.1": "additionalPolicy",
|
||||
"2.23.42.4": "algorithm",
|
||||
"2.23.42.5": "policy",
|
||||
"2.23.42.5.0": "root",
|
||||
"2.23.42.6": "module",
|
||||
"2.23.42.7": "certExt",
|
||||
"2.23.42.7.0": "hashedRootKey",
|
||||
"2.23.42.7.1": "certificateType",
|
||||
"2.23.42.7.2": "merchantData",
|
||||
"2.23.42.7.3": "cardCertRequired",
|
||||
"2.23.42.7.4": "tunneling",
|
||||
"2.23.42.7.5": "setExtensions",
|
||||
"2.23.42.7.6": "setQualifier",
|
||||
"2.23.42.8": "brand",
|
||||
"2.23.42.8.1": "IATA-ATA",
|
||||
"2.23.42.8.30": "Diners",
|
||||
"2.23.42.8.34": "AmericanExpress",
|
||||
"2.23.42.8.4": "VISA",
|
||||
"2.23.42.8.5": "MasterCard",
|
||||
"2.23.42.8.6011": "Novus",
|
||||
"2.23.42.9": "vendor",
|
||||
"2.23.42.9.0": "GlobeSet",
|
||||
"2.23.42.9.1": "IBM",
|
||||
"2.23.42.9.10": "Griffin",
|
||||
"2.23.42.9.11": "Certicom",
|
||||
"2.23.42.9.12": "OSS",
|
||||
"2.23.42.9.13": "TenthMountain",
|
||||
"2.23.42.9.14": "Antares",
|
||||
"2.23.42.9.15": "ECC",
|
||||
"2.23.42.9.16": "Maithean",
|
||||
"2.23.42.9.17": "Netscape",
|
||||
"2.23.42.9.18": "Verisign",
|
||||
"2.23.42.9.19": "BlueMoney",
|
||||
"2.23.42.9.2": "CyberCash",
|
||||
"2.23.42.9.20": "Lacerte",
|
||||
"2.23.42.9.21": "Fujitsu",
|
||||
"2.23.42.9.22": "eLab",
|
||||
"2.23.42.9.23": "Entrust",
|
||||
"2.23.42.9.24": "VIAnet",
|
||||
"2.23.42.9.25": "III",
|
||||
"2.23.42.9.26": "OpenMarket",
|
||||
"2.23.42.9.27": "Lexem",
|
||||
"2.23.42.9.28": "Intertrader",
|
||||
"2.23.42.9.29": "Persimmon",
|
||||
"2.23.42.9.3": "Terisa",
|
||||
"2.23.42.9.30": "NABLE",
|
||||
"2.23.42.9.31": "espace-net",
|
||||
"2.23.42.9.32": "Hitachi",
|
||||
"2.23.42.9.33": "Microsoft",
|
||||
"2.23.42.9.34": "NEC",
|
||||
"2.23.42.9.35": "Mitsubishi",
|
||||
"2.23.42.9.36": "NCR",
|
||||
"2.23.42.9.37": "e-COMM",
|
||||
"2.23.42.9.38": "Gemplus",
|
||||
"2.23.42.9.4": "RSADSI",
|
||||
"2.23.42.9.5": "VeriFone",
|
||||
"2.23.42.9.6": "TrinTech",
|
||||
"2.23.42.9.7": "BankGate",
|
||||
"2.23.42.9.8": "GTE",
|
||||
"2.23.42.9.9": "CompuSource",
|
||||
"2.5.29.1": "authorityKeyIdentifier",
|
||||
"2.5.29.10": "basicConstraints",
|
||||
"2.5.29.11": "nameConstraints",
|
||||
"2.5.29.12": "policyConstraints",
|
||||
"2.5.29.13": "basicConstraints",
|
||||
"2.5.29.14": "subjectKeyIdentifier",
|
||||
"2.5.29.15": "keyUsage",
|
||||
"2.5.29.16": "privateKeyUsagePeriod",
|
||||
"2.5.29.17": "subjectAltName",
|
||||
"2.5.29.18": "issuerAltName",
|
||||
"2.5.29.19": "basicConstraints",
|
||||
"2.5.29.2": "keyAttributes",
|
||||
"2.5.29.20": "cRLNumber",
|
||||
"2.5.29.21": "cRLReason",
|
||||
"2.5.29.22": "expirationDate",
|
||||
"2.5.29.23": "instructionCode",
|
||||
"2.5.29.24": "invalidityDate",
|
||||
"2.5.29.26": "issuingDistributionPoint",
|
||||
"2.5.29.27": "deltaCRLIndicator",
|
||||
"2.5.29.28": "issuingDistributionPoint",
|
||||
"2.5.29.29": "certificateIssuer",
|
||||
"2.5.29.3": "certificatePolicies",
|
||||
"2.5.29.30": "nameConstraints",
|
||||
"2.5.29.31": "cRLDistributionPoints",
|
||||
"2.5.29.32": "certificatePolicies",
|
||||
"2.5.29.33": "policyMappings",
|
||||
"2.5.29.34": "policyConstraints",
|
||||
"2.5.29.35": "authorityKeyIdentifier",
|
||||
"2.5.29.36": "policyConstraints",
|
||||
"2.5.29.37": "extKeyUsage",
|
||||
"2.5.29.4": "keyUsageRestriction",
|
||||
"2.5.29.5": "policyMapping",
|
||||
"2.5.29.6": "subtreesConstraint",
|
||||
"2.5.29.7": "subjectAltName",
|
||||
"2.5.29.8": "issuerAltName",
|
||||
"2.5.29.9": "subjectDirectoryAttributes",
|
||||
"2.5.4.0": "objectClass",
|
||||
"2.5.4.1": "aliasObjectName",
|
||||
"2.5.4.12": "title",
|
||||
"2.5.4.13": "description",
|
||||
"2.5.4.14": "searchGuide",
|
||||
"2.5.4.15": "businessCategory",
|
||||
"2.5.4.16": "postalAddress",
|
||||
"2.5.4.17": "postalCode",
|
||||
"2.5.4.18": "postOfficeBox",
|
||||
"2.5.4.19": "physicalDeliveryOfficeName",
|
||||
"2.5.4.2": "knowledgeInformation",
|
||||
"2.5.4.20": "telephoneNumber",
|
||||
"2.5.4.21": "telexNumber",
|
||||
"2.5.4.22": "teletexTerminalIdentifier",
|
||||
"2.5.4.23": "facsimileTelephoneNumber",
|
||||
"2.5.4.24": "x121Address",
|
||||
"2.5.4.25": "internationalISDNNumber",
|
||||
"2.5.4.26": "registeredAddress",
|
||||
"2.5.4.27": "destinationIndicator",
|
||||
"2.5.4.28": "preferredDeliveryMehtod",
|
||||
"2.5.4.29": "presentationAddress",
|
||||
"2.5.4.30": "supportedApplicationContext",
|
||||
"2.5.4.31": "member",
|
||||
"2.5.4.32": "owner",
|
||||
"2.5.4.33": "roleOccupant",
|
||||
"2.5.4.34": "seeAlso",
|
||||
"2.5.4.35": "userPassword",
|
||||
"2.5.4.36": "userCertificate",
|
||||
"2.5.4.37": "caCertificate",
|
||||
"2.5.4.38": "authorityRevocationList",
|
||||
"2.5.4.39": "certificateRevocationList",
|
||||
"2.5.4.40": "crossCertificatePair",
|
||||
"2.5.4.41": "givenName",
|
||||
"2.5.4.42": "givenName",
|
||||
"2.5.4.5": "serialNumber",
|
||||
"2.5.4.52": "supportedAlgorithms",
|
||||
"2.5.4.53": "deltaRevocationList",
|
||||
"2.5.4.58": "crossCertificatePair",
|
||||
"2.5.4.9": "streetAddress",
|
||||
"2.5.8": "X.500-Algorithms",
|
||||
"2.5.8.1": "X.500-Alg-Encryption",
|
||||
"2.5.8.1.1": "rsa",
|
||||
"2.16.76.1.1": "DPC",
|
||||
"2.16.76.1.1.0": "DPC da AC Raiz",
|
||||
"2.16.76.1.1.1": "DPC da AC Presidência",
|
||||
"2.16.76.1.1.2": "DPC da AC Serpro",
|
||||
"2.16.76.1.1.3": "DPC da SERASA Autoridade Certificadora Principal - ACP",
|
||||
"2.16.76.1.1.4": "DPC da SERASA Autoridade Certificadora - AC",
|
||||
"2.16.76.1.1.5": "DPC da AC CertiSign na ICPBrasil",
|
||||
"2.16.76.1.1.6": "DPC da AC CertiSign SPB na ICPBrasil",
|
||||
"2.16.76.1.1.7": "DPC da SERASA Certificadora Digital",
|
||||
"2.16.76.1.1.8": "DPC da AC SRF",
|
||||
"2.16.76.1.1.9": "DPC da AC CAIXA",
|
||||
"2.16.76.1.1.10": "DPC da AC CAIXA IN",
|
||||
"2.16.76.1.1.11": "DPC da AC CAIXA PJ",
|
||||
"2.16.76.1.1.12": "DPC da AC CAIXA PF",
|
||||
"2.16.76.1.1.13": "DPC da AC SERPRO SRF",
|
||||
"2.16.76.1.1.14": "DPC da Autoridade Certificadora CertiSign Múltipla",
|
||||
"2.16.76.1.1.15": "DPC da Autoridade Certificadora CertiSign para Secretaria da Receita Federal",
|
||||
"2.16.76.1.1.16": "DPC da AC SERASA SRF",
|
||||
"2.16.76.1.1.17": "DPC da Autoridade Certificadora Imprensa Oficial SP",
|
||||
"2.16.76.1.1.18": "DPC da Autoridade Certificadora PRODEMGE",
|
||||
"2.16.76.1.1.19": "DPC da Autoridade Certificadora do Sistema Justiça Federal - ACJUS",
|
||||
"2.16.76.1.1.20": "Declaração de Práticas de Certificação da Autoridade Certificadora do SERPRO Final - DPC SERPRO ACF",
|
||||
"2.16.76.1.1": "DPC",
|
||||
"2.16.76.1.1.21": "Declaração de Práticas de Certificação da Autoridade Certificadora SINCOR",
|
||||
"2.16.76.1.1.22": "Declaração de Práticas de Certificação da Autoridade Certificadora Imprensa Oficial SP SRF",
|
||||
"2.16.76.1.1.23": "Declaração de Práticas de Certificação da AC FENACOR",
|
||||
"2.16.76.1.1.24": "Declaração de Práticas de Certificação da Autoridade Certificadora SERPRO JUS",
|
||||
"2.16.76.1.1.25": "DPC da AC Caixa Justiça",
|
||||
"2.16.76.1.1.26": "DPC da Autoridade Certificadora Imprensa Oficial SP (AC IMESP)",
|
||||
"2.16.76.1.1.27": "DPC da Autoridade Certificadora PRODEMGE SRF",
|
||||
"2.16.76.1.1.28": "Declaração de Práticas de Certificação da Autoridade Certificadora CertSign para a Justiça",
|
||||
"2.16.76.1.1.29": "DPC da AC SERASA JUS",
|
||||
"2.16.76.1.2": "PC",
|
||||
"2.16.76.1.2.1": "A1",
|
||||
"2.16.76.1.2.1.1": "Política de Certificados da ACSERPRO para certificados SERPROSPB PC SERPROSPB",
|
||||
"2.16.76.1.2.1.2": "Política de Certificados para certificados da SERASA Autoridade Certificadora",
|
||||
"2.16.76.1.2.1.3": "Política de Certificados da Autoridade Certificadora da Presidência da República - PCA1",
|
||||
"2.16.76.1.2.1.4": "Política de Certificado da Autoridade Certificadora CertiSign Certificadora Digital para o Sistema de Pagamentos Brasileiro na ICPBrasil PC da AC CertiSign SPB na ICPBrasil",
|
||||
"2.16.76.1.2.1.5": "Política de Certificados SEPROA1",
|
||||
"2.16.76.1.2.1.6": "Política de Certificado Digital para Certificado de Assinatura Digital Tipo A1 - SERASA CD",
|
||||
"2.16.76.1.2.1.7": "Política de Certificado de Assinatura Digital do Tipo A1 da AC Caixa IN",
|
||||
"2.16.76.1.2.1.8": "Política de Certificado de Assinatura Digital do Tipo A1 da AC Caixa PF",
|
||||
"2.16.76.1.2.1.9": "Política de Certificado de Assinatura Digital do Tipo A1 da AC Caixa PJ",
|
||||
"2.16.76.1.2.1.10": "Política de Certificados da Autoridade Certificadora do SerproSRF para certificados de assinatura digital do tipo A1 (PCSerproSRFA1)",
|
||||
"2.16.76.1.2.1.11": "Política de Certificado de Assinatura Digital do Tipo A1 da Autoridade Certificadora CertiSign Múltipla na Infraestrutura de Chaves Públicas Brasileira",
|
||||
"2.16.76.1.2.1.12": "Política de Certificado de Assinatura Digital Tipo A1 da Autoridade Certificadora CertiSign para a Secretaria da Receita Federal",
|
||||
"2.16.76.1.2.1.13": "Política de Certificado de Assinatura Digital Tipo A1 da AC SERASA SRF",
|
||||
"2.16.76.1.2.1.14": "Política de Certificado de Assinatura Digital Tipo A1 da Autoridade Certificadora Imprensa Oficial SP",
|
||||
"2.16.76.1.2.1.15": "Política de Certificado de Assinatura Digital Tipo A1 da Autoridade Certificadora PRODEMGE",
|
||||
"2.16.76.1.2.1.16": "Política de Certificados SERPRO do Tipo A1 - PC SERPRO ACF A1",
|
||||
"2.16.76.1.2.1.17": "Política de Certificados do SERPRO - SPB - PC SERPRO ACF SPB",
|
||||
"2.16.76.1.2.1.18": "Política de Certificado de Assinatura Digital Tipo A1 da Autoridade Certificadora SINCOR",
|
||||
"2.16.76.1.2.1.19": "Política de Certificado de Assinatura Digital Tipo A1 da Autoridade Certificadora SINCOR para Corretores de Seguros",
|
||||
"2.16.76.1.2": "PC",
|
||||
"2.16.76.1.2.1": "A1",
|
||||
"2.16.76.1.2.1.20": "Política de Certificado de Assinatura Digital Tipo A1 da Autoridade Certificadora Imprensa Oficial SP SRF",
|
||||
"2.16.76.1.2.1.21": "Política de Certificados SERPROJUS do tipo A1 PCSERPROJUSA1",
|
||||
"2.16.76.1.2.1.22": "Política de Certificado de Assinatura Digital do Tipo A1 da AC Caixa Justiça",
|
||||
"2.16.76.1.2.1.23": "Política de Certificado de Assinatura Tipo A1 da Autoridade Certificadora PRODEMGE SRF",
|
||||
"2.16.76.1.2.1.24": "Política de Certificado de Assinatura Digital Tipo A1 da Autoridade Certificadora CertiSign para a Justiça",
|
||||
"2.16.76.1.2.1.25": "Política de Certificado Digital da AC SERASAJUS para Certificados Tipo A1",
|
||||
"2.16.76.1.2": "PC",
|
||||
"2.16.76.1.2.2": "A2",
|
||||
"2.16.76.1.2.2.1": "Política de Certificado Digital para Certificado de Assinatura Digital Tipo A2 - SERASA CD",
|
||||
"2.16.76.1.2.2.2": "Política de Certificado Digital para Certificado de Assinatura Digital Tipo A2 da AC SERASA SRF",
|
||||
"2.16.76.1.2.2.3": "Política de Certificado de Assinatura Digital do Tipo A2 da Autoridade Certificadora CertiSign últipla na Infraestrutura de Chaves Públicas Brasileira",
|
||||
"2.16.76.1.2.2.4": "Política de Certificado de Assinatura Digital do Tipo A2 da Autoridade Certificadora Imprensa Oficial SP",
|
||||
"2.16.76.1.2.2.5": "Política de Certificado de Assinatura Digital do Tipo A2 da AC Caixa Justiça",
|
||||
"2.16.76.1.2.2.6": "Política de Certificado de Assinatura Digital Tipo A2 da Autoridade Certificadora CertiSign para a Justiça",
|
||||
"2.16.76.1.2.2.7": "Política de Certificado Digital da AC SERASAJUS para Certificados Tipo A2",
|
||||
"2.16.76.1.2": "PC",
|
||||
"2.16.76.1.2.3": "A3",
|
||||
"2.16.76.1.2.3.1": "Política de Certificados da Autoridade Certificadora da Presidência da República - PC ACPR",
|
||||
"2.16.76.1.2.3.2": "Política de Certificados da Autoridade Certificadora do SERPRO para certificados SERPRO do tipo A3 - PCSERPROA3",
|
||||
"2.16.76.1.2.3.3": "Política de Certificado Digital para Certificado de Assinatura Digital Tipo A3 - SERASA CD",
|
||||
"2.16.76.1.2.3.4": "Política de Certificados da Autoridade Certificadora do SerproSRF para certificados de assinatura digital do tipo A3 (PCSerproSRFA3)",
|
||||
"2.16.76.1.2.3.5": "Política de Certificado de Assinatura Digital do Tipo A3 da Autoridade Certificadora CertiSign Múltipla na Infraestrutura de Chaves Públicas Brasileira",
|
||||
"2.16.76.1.2.3.6": "Política de Certificado de Assinatura Digital Tipo A3 da Autoridade Certificadora CertiSign para a Secretaria da Receita Federal na Infraestrutura de Chaves Públicas Brasileira",
|
||||
"2.16.76.1.2.3.7": "Política de Certificado de Assinatura Digital do Tipo A3 da AC Caixa IN",
|
||||
"2.16.76.1.2.3.8": "Política de Certificado de Assinatura Digital do Tipo A3 da AC Caixa PF",
|
||||
"2.16.76.1.2.3.9": "Política de Certificado de Assinatura Digital do Tipo A3 da AC Caixa PJ",
|
||||
"2.16.76.1.2.3.10": "Política de Certificado de Assinatura Digital do Tipo A3 da AC SERASA SRF",
|
||||
"2.16.76.1.2.3.11": "Política de Certificado de Assinatura Digital do Tipo A3 da Autoridade Certificadora Imprensa Oficial SP",
|
||||
"2.16.76.1.2.3.12": "Política de Certificado de Assinatura Digital do Tipo A3 da Autoridade Certificadora PRODEMGE",
|
||||
"2.16.76.1.2.3.13": "Política de Certificados SERPRO do Tipo A3 - PC SERPRO A3",
|
||||
"2.16.76.1.2.3.14": "Política de Certificado de Assinatura Digital Tipo A3 da Autoridade Certificadora SINCOR",
|
||||
"2.16.76.1.2.3.15": "Política de Certificado de Assinatura Digital Tipo A3 da Autoridade Certificadora SINCOR para Corretores de Seguros",
|
||||
"2.16.76.1.2.3.16": "Política de Certificado de Assinatura Digital Tipo A3 da Autoridade Certificadora Imprensa Oficial SP SRF",
|
||||
"2.16.76.1.2": "PC",
|
||||
"2.16.76.1.2.3": "A3",
|
||||
"2.16.76.1.2.3.17": "Política de Certificado da AC FENACOR A3",
|
||||
"2.16.76.1.2.3.18": "Política de Certificados SERPROJUS do tipo A3 PCSERPROJUSA3",
|
||||
"2.16.76.1.2.3.19": "Política de Certificado de Assinatura Digital do Tipo A3 da AC Caixa Justiça",
|
||||
"2.16.76.1.2.3.20": "Política de Certificado de Assinatura Tipo A3 da Autoridade Certificadora PRODEMGE SRF",
|
||||
"2.16.76.1.2.3.21": "Política de Certificado de Assinatura Digital Tipo A3 da Autoridade Certificadora CertiSign para a Justiça",
|
||||
"2.16.76.1.2.3.22": "Política de Certificado Digital da AC SERASAJUS para Certificados Tipo A3",
|
||||
"2.16.76.1.2": "PC",
|
||||
"2.16.76.1.2.4": "A4",
|
||||
"2.16.76.1.2.4.1": "Política de Certificado Digital para Certificado de Assinatura Digital Tipo A4 - SERASA CD;",
|
||||
"2.16.76.1.2.4.2": "VAGO",
|
||||
"2.16.76.1.2.4.3": "Política de Certificado de Assinatura Digital do Tipo A4 da Autoridade Certificadora CertiSign Múltipla na Infraestrutura de Chaves Públicas Brasileira",
|
||||
"2.16.76.1.2.4.4": "Política de Certificado de Assinatura Digital Tipo A4 da Autoridade Certificadora CertiSign para a Secretaria da Receita Federal na Infraestrutura de Chaves Públicas Brasileira",
|
||||
"2.16.76.1.2.4.5": "Política de Certificado de Assinatura Digital Tipo A4 da Autoridade Certificadora Imprensa Oficial SP",
|
||||
"2.16.76.1.2.4.6": "Política de Certificado de Assinatura Digital Tipo A4 da Autoridade Certificadora Imprensa Oficial - SP SRF",
|
||||
"2.16.76.1.2.4.7": "Política de Certificado de Assinatura Tipo A4 da Autoridade Certificadora PRODEMGE SRF",
|
||||
"2.16.76.1.2.4.8": "Política de Certificado de Assinatura Digital Tipo A4 da Autoridade Certificadora CertiSign para a Justiça",
|
||||
"2.16.76.1.2.4.9": "VAGO",
|
||||
"2.16.76.1.2.4.10": "Política de Certificado Digital a AC SERASAJUS para Certificados Tipo A4",
|
||||
"2.16.76.1.2": "PC",
|
||||
"2.16.76.1.2.101": "S1",
|
||||
"2.16.76.1.2.101.1": "Política de Certificado Digital para Certificado de Sigilo Tipo S1-SERASA CD",
|
||||
"2.16.76.1.2.101.2": "Política de Certificado de Sigilo Tipo S1 da Autoridade Certificadora Imprensa Oficial SP",
|
||||
"2.16.76.1.2.101.3": "Política de Certificado de Sigilo do Tipo S1 da Autoridade Certificadora CertiSign Múltipla",
|
||||
"2.16.76.1.2.101.4": "Política de Certificado de Sigilo do Tipo S1 da Autoridade Certificadora PRODEMGE",
|
||||
"2.16.76.1.2.101.5": "Política de Certificado de Assinatura Digital do Tipo S1 da AC Caixa Justiça",
|
||||
"2.16.76.1.2.101.6": "Política de Certificado de Assinatura Digital Tipo S1 da Autoridade Certificadora CertiSign para a Justiça",
|
||||
"2.16.76.1.2.101.7": "Política de Certificado Digital da AC SERASAJUS para Cerficados Tipo S1",
|
||||
"2.16.76.1.2": "PC",
|
||||
"2.16.76.1.2.102": "S2",
|
||||
"2.16.76.1.2.102.1": "Política de Certificado Digital para Certificado de Sigilo Tipo S2 - SERASA CD",
|
||||
"2.16.76.1.2.102.2": "Política de Certificado de Sigilo Tipo S2 da Autoridade Certificadora Imprensa Oficial SP",
|
||||
"2.16.76.1.2.102.3": "Política de Certificado de Sigilo do Tipo S2 da Autoridade Certificadora CertiSign Múltipla",
|
||||
"2.16.76.1.2.102.4": "Política de Certificado de Assinatura Digital do Tipo S2 da AC Caixa Justiça",
|
||||
"2.16.76.1.2.102.5": "Política de Certificado de Assinatura Digital Tipo S2 da Autoridade Certificadora CertiSign para a Justiça",
|
||||
"2.16.76.1.2.102.6": "Política de Certificado Digital da AC SERASAJUS para Certificados Tipo S2",
|
||||
"2.16.76.1.2": "PC",
|
||||
"2.16.76.1.2.103": "S3",
|
||||
"2.16.76.1.2.103.1": "Política de Certificado Digital para Certificado de Sigilo Tipo S3 - SERASA CD",
|
||||
"2.16.76.1.2.103.2": "VAGO",
|
||||
"2.16.76.1.2.103.3": "Política de Certificado de Sigilo do Tipo S3 da Autoridade Certificadora CertiSign Múltipla",
|
||||
"2.16.76.1.2.103.4": "Política de Certificado de Sigilo Tipo S3 da Autoridade Certificadora Imprensa Oficial SP",
|
||||
"2.16.76.1.2.103.5": "Política de Certificado de Sigilo Tipo S3 da Autoridade Certificadora PRODEMGE",
|
||||
"2.16.76.1.2.103.6": "Política de Certificado de Assinatura Digital do Tipo S3 da AC Caixa Justiça",
|
||||
"2.16.76.1.2.103.7": "Política de Certificado de Assinatura Digital Tipo S3 da Autoridade Certificadora CertiSign para a Justiça",
|
||||
"2.16.76.1.2.103.8": "Política de Certificado Digital da AC SERASAJUS para Certificados Tipo S3",
|
||||
"2.16.76.1.2": "PC",
|
||||
"2.16.76.1.2.104": "S4",
|
||||
"2.16.76.1.2.104.1": "Política de Certificado Digital para Certificado de Sigilo Tipo S4 - SERASA CD",
|
||||
"2.16.76.1.2.104.2": "VAGO",
|
||||
"2.16.76.1.2.104.3": "Política de Certificado de Sigilo do Tipo S4 da Autoridade Certificadora CertiSign Múltipla",
|
||||
"2.16.76.1.2.104.4": "Política de Certificado de Sigilo Tipo S4 da Autoridade Certificadora Imprensa Oficial SP",
|
||||
"2.16.76.1.2.104.5": "Política de Certificado de Assinatura Digital Tipo S4 da Autoridade Certificadora CertiSign para a Justiça",
|
||||
"2.16.76.1.2.104.6": "Política de Certificado Digital da AC SERASAJUS para Certificados Tipo S4",
|
||||
"2.16.76.1.2": "PC",
|
||||
"2.16.76.1.2.201": "PC de AC",
|
||||
"2.16.76.1.2.201.1": "PC da Serasa Autoridade Certificadora Principal - ACP",
|
||||
"2.16.76.1.2.201.2": "PC da AC CertiSign na ICPBrasil",
|
||||
"2.16.76.1.2.201.3": "PC da AC SRF",
|
||||
"2.16.76.1.2.201.4": "Política de Certificados da Autoridade Certificadora Caixa",
|
||||
"2.16.76.1.2.201.5": "PC da Autoridade Certificadora do Sistema Justiça Federal - AC JUS",
|
||||
"2.16.76.1.2.201.6": "PC da Autoridade Certificadora do SERPRO (AC SERPRO)",
|
||||
"2.16.76.1.2.201.7": "PC da Autoridade Certificadora Imprensa Oficial SP (AC IMESP)",
|
||||
"2.16.76.1.3": "Atributos Obrigatórios de Certificados",
|
||||
"2.16.76.1.3.1": "campo otherName em certificado de pessoa física",
|
||||
"2.16.76.1.3.2": "campo otherName em certificado de pessoa jurídica",
|
||||
"2.16.76.1.3.3": "campo otherName em certificado de pessoa jurídica",
|
||||
"2.16.76.1.3.4": "campo otherName em certificado de pessoa jurídica",
|
||||
"2.16.76.1.3.5": "campo otherName em certificado de pessoa física",
|
||||
"2.16.76.1.3.6": "campo otherName em certificado de pessoa física",
|
||||
"2.16.76.1.3.7": "campo otherName em certificado de pessoa jurídica",
|
||||
"2.16.76.1.4": "Atributos Opcionais de Certificados",
|
||||
"2.16.76.1.4.1": "Entidades Sindicais",
|
||||
"2.16.76.1.4.1.1": "SINCOR",
|
||||
"2.16.76.1.4.1.1.1": "Número de registro do corretor associado"
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
<script setup lang="ts">
|
||||
import { normalizeEmail } from 'email-normalizer';
|
||||
import { withDefaultOnError } from '@/utils/defaults';
|
||||
import { useCopy } from '@/composable/copy';
|
||||
|
||||
const emails = ref('');
|
||||
const normalizedEmails = computed(() => {
|
||||
if (!emails.value) {
|
||||
return '';
|
||||
}
|
||||
|
||||
return emails.value
|
||||
.split('\n')
|
||||
.map((email) => {
|
||||
return withDefaultOnError(() => normalizeEmail({ email }), `Unable to parse email: ${email}`);
|
||||
})
|
||||
.join('\n');
|
||||
});
|
||||
|
||||
const { copy } = useCopy({ source: normalizedEmails, text: 'Normalized emails copied to the clipboard', createToast: true });
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<div class="mb-2">
|
||||
Raw emails to normalize:
|
||||
</div>
|
||||
<c-input-text
|
||||
v-model:value="emails"
|
||||
placeholder="Put your emails here (one per line)..."
|
||||
rows="3"
|
||||
multiline
|
||||
autocomplete="off"
|
||||
autocorrect="off"
|
||||
autocapitalize="off"
|
||||
spellcheck="false"
|
||||
autofocus
|
||||
monospace
|
||||
/>
|
||||
|
||||
<div class="mb-2 mt-4">
|
||||
Normalized emails:
|
||||
</div>
|
||||
<c-input-text
|
||||
:value="normalizedEmails"
|
||||
placeholder="Normalized emails will appear here..."
|
||||
rows="3"
|
||||
autocomplete="off"
|
||||
autocorrect="off"
|
||||
autocapitalize="off"
|
||||
spellcheck="false"
|
||||
multiline
|
||||
readonly
|
||||
monospace
|
||||
/>
|
||||
<div class="mt-4 flex justify-center gap-2">
|
||||
<c-button @click="emails = ''">
|
||||
Clear emails
|
||||
</c-button>
|
||||
<c-button :disabled="!normalizedEmails" @click="copy()">
|
||||
Copy normalized emails
|
||||
</c-button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -0,0 +1,12 @@
|
||||
import { Mail } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: 'Email normalizer',
|
||||
path: '/email-normalizer',
|
||||
description: 'Normalize email addresses to a standard format for easier comparison. Useful for deduplication and data cleaning.',
|
||||
keywords: ['email', 'normalizer'],
|
||||
component: () => import('./email-normalizer.vue'),
|
||||
icon: Mail,
|
||||
createdAt: new Date('2024-08-15'),
|
||||
});
|
||||
@@ -4,6 +4,7 @@ import emojiKeywords from 'emojilib';
|
||||
import _ from 'lodash';
|
||||
import type { EmojiInfo } from './emoji.types';
|
||||
import { useFuzzySearch } from '@/composable/fuzzySearch';
|
||||
import useDebouncedRef from '@/composable/debouncedref';
|
||||
|
||||
const escapeUnicode = ({ emoji }: { emoji: string }) => emoji.split('').map(unit => `\\u${unit.charCodeAt(0).toString(16).padStart(4, '0')}`).join('');
|
||||
const getEmojiCodePoints = ({ emoji }: { emoji: string }) => emoji.codePointAt(0) ? `0x${emoji.codePointAt(0)?.toString(16)}` : undefined;
|
||||
@@ -23,7 +24,7 @@ const emojisGroups: { emojiInfos: EmojiInfo[]; group: string }[] = _
|
||||
.map((emojiInfos, group) => ({ group, emojiInfos }))
|
||||
.value();
|
||||
|
||||
const searchQuery = ref('');
|
||||
const searchQuery = useDebouncedRef('', 500);
|
||||
|
||||
const { searchResult } = useFuzzySearch({
|
||||
search: searchQuery,
|
||||
|
||||
+41
-2
@@ -1,7 +1,18 @@
|
||||
import { tool as base64FileConverter } from './base64-file-converter';
|
||||
import { tool as base64StringConverter } from './base64-string-converter';
|
||||
import { tool as basicAuthGenerator } from './basic-auth-generator';
|
||||
import { tool as emailNormalizer } from './email-normalizer';
|
||||
|
||||
import { tool as asciiTextDrawer } from './ascii-text-drawer';
|
||||
|
||||
import { tool as textToUnicode } from './text-to-unicode';
|
||||
import { tool as certificateKeyParser } from './certificate-key-parser';
|
||||
import { tool as safelinkDecoder } from './safelink-decoder';
|
||||
import { tool as xmlToJson } from './xml-to-json';
|
||||
import { tool as jsonToXml } from './json-to-xml';
|
||||
import { tool as regexTester } from './regex-tester';
|
||||
import { tool as regexMemo } from './regex-memo';
|
||||
import { tool as markdownToHtml } from './markdown-to-html';
|
||||
import { tool as pdfSignatureChecker } from './pdf-signature-checker';
|
||||
import { tool as numeronymGenerator } from './numeronym-generator';
|
||||
import { tool as macAddressGenerator } from './mac-address-generator';
|
||||
@@ -81,7 +92,20 @@ import { tool as yamlViewer } from './yaml-viewer';
|
||||
export const toolsByCategory: ToolCategory[] = [
|
||||
{
|
||||
name: 'Crypto',
|
||||
components: [tokenGenerator, hashText, bcrypt, uuidGenerator, ulidGenerator, cypher, bip39, hmacGenerator, rsaKeyPairGenerator, passwordStrengthAnalyser, pdfSignatureChecker],
|
||||
components: [
|
||||
tokenGenerator,
|
||||
hashText,
|
||||
bcrypt,
|
||||
uuidGenerator,
|
||||
ulidGenerator,
|
||||
cypher,
|
||||
bip39,
|
||||
hmacGenerator,
|
||||
rsaKeyPairGenerator,
|
||||
certificateKeyParser,
|
||||
passwordStrengthAnalyser,
|
||||
pdfSignatureChecker,
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'Converter',
|
||||
@@ -103,6 +127,9 @@ export const toolsByCategory: ToolCategory[] = [
|
||||
listConverter,
|
||||
tomlToJson,
|
||||
tomlToYaml,
|
||||
xmlToJson,
|
||||
jsonToXml,
|
||||
markdownToHtml,
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -123,6 +150,7 @@ export const toolsByCategory: ToolCategory[] = [
|
||||
userAgentParser,
|
||||
httpStatusCodes,
|
||||
jsonDiff,
|
||||
safelinkDecoder,
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -143,6 +171,9 @@ export const toolsByCategory: ToolCategory[] = [
|
||||
dockerRunToDockerComposeConverter,
|
||||
xmlFormatter,
|
||||
yamlViewer,
|
||||
emailNormalizer,
|
||||
regexTester,
|
||||
regexMemo,
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -159,7 +190,15 @@ export const toolsByCategory: ToolCategory[] = [
|
||||
},
|
||||
{
|
||||
name: 'Text',
|
||||
components: [loremIpsumGenerator, textStatistics, emojiPicker, stringObfuscator, textDiff, numeronymGenerator],
|
||||
components: [
|
||||
loremIpsumGenerator,
|
||||
textStatistics,
|
||||
emojiPicker,
|
||||
stringObfuscator,
|
||||
textDiff,
|
||||
numeronymGenerator,
|
||||
asciiTextDrawer,
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'Data',
|
||||
|
||||
@@ -11,21 +11,6 @@ describe('integer-base-converter', () => {
|
||||
expect(convertBase({ value: '10100101', fromBase: 2, toBase: 16 })).toEqual('a5');
|
||||
expect(convertBase({ value: '192654', fromBase: 10, toBase: 8 })).toEqual('570216');
|
||||
expect(convertBase({ value: 'zz', fromBase: 64, toBase: 10 })).toEqual('2275');
|
||||
expect(convertBase({ value: 'AA', fromBase: 16, toBase: 10 })).toEqual('170');
|
||||
expect(convertBase({ value: 'aa', fromBase: 16, toBase: 10 })).toEqual('170');
|
||||
expect(convertBase({ value: '0xAA', fromBase: -1, toBase: 10 })).toEqual('170');
|
||||
expect(convertBase({ value: '&HAA', fromBase: -1, toBase: 10 })).toEqual('170');
|
||||
expect(convertBase({ value: '0xAAUL', fromBase: -1, toBase: 10 })).toEqual('170');
|
||||
expect(convertBase({ value: '0XAAUL', fromBase: -1, toBase: 10 })).toEqual('170');
|
||||
expect(convertBase({ value: '10UL', fromBase: 10, toBase: 10 })).toEqual('10');
|
||||
expect(convertBase({ value: '10n', fromBase: 10, toBase: 10 })).toEqual('10');
|
||||
expect(convertBase({ value: '0o252', fromBase: -1, toBase: 10 })).toEqual('170');
|
||||
expect(convertBase({ value: '&O252', fromBase: -1, toBase: 10 })).toEqual('170');
|
||||
expect(convertBase({ value: '192 654', fromBase: 10, toBase: 8 })).toEqual('570216');
|
||||
expect(convertBase({ value: '192.654', fromBase: 10, toBase: 8 })).toEqual('570216');
|
||||
expect(convertBase({ value: '0b10101010', fromBase: -1, toBase: 10 })).toEqual('170');
|
||||
expect(convertBase({ value: '0b_1010_1010', fromBase: -1, toBase: 10 })).toEqual('170');
|
||||
expect(convertBase({ value: '192,654', fromBase: 10, toBase: 8 })).toEqual('570216');
|
||||
expect(convertBase({ value: '42540766411283223938465490632011909384', fromBase: 10, toBase: 10 })).toEqual('42540766411283223938465490632011909384');
|
||||
expect(convertBase({ value: '42540766411283223938465490632011909384', fromBase: 10, toBase: 16 })).toEqual('20010db8000085a300000000ac1f8908');
|
||||
expect(convertBase({ value: '20010db8000085a300000000ac1f8908', fromBase: 16, toBase: 10 })).toEqual('42540766411283223938465490632011909384');
|
||||
|
||||
@@ -1,56 +1,15 @@
|
||||
export function hasNumberPrefix(value: string) {
|
||||
return (value ?? '').trim().match(/^(0[xob].|&[hob].)/i);
|
||||
}
|
||||
|
||||
export function convertBase(
|
||||
{
|
||||
value, fromBase, toBase,
|
||||
ignorePunctuationsRegexChars = ' \u00A0_\.,-',
|
||||
handlePrefixSuffix = true,
|
||||
ignoreCase = true,
|
||||
}: {
|
||||
value: string
|
||||
fromBase: number
|
||||
toBase: number
|
||||
ignorePunctuationsRegexChars?: string
|
||||
handlePrefixSuffix?: boolean
|
||||
ignoreCase?: boolean
|
||||
}) {
|
||||
let cleanedValue = (value ?? '0').trim();
|
||||
if (ignorePunctuationsRegexChars) {
|
||||
cleanedValue = cleanedValue.replace(new RegExp(`[${ignorePunctuationsRegexChars}]`, 'g'), '');
|
||||
}
|
||||
let finalFromBase = fromBase;
|
||||
if (handlePrefixSuffix) {
|
||||
for (const regBase of [
|
||||
{ base: 2, regex: /^(&b|0b)?([01]+)([IULZn]*)$/i },
|
||||
{ base: 8, regex: /^(&o|0o)?([0-7]+)([IULZn]*)$/i },
|
||||
{ base: 16, regex: /^(&h|0x)?([a-f0-9]+)([IULZn]*)$/i },
|
||||
]) {
|
||||
const match = cleanedValue.match(regBase.regex);
|
||||
if (match) {
|
||||
if (match[1]) {
|
||||
finalFromBase = regBase.base;
|
||||
}
|
||||
cleanedValue = match[2];
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (ignoreCase && finalFromBase <= 36) {
|
||||
cleanedValue = cleanedValue.toLowerCase();
|
||||
}
|
||||
export function convertBase({ value, fromBase, toBase }: { value: string; fromBase: number; toBase: number }) {
|
||||
const range = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ+/'.split('');
|
||||
const fromRange = range.slice(0, finalFromBase);
|
||||
const fromRange = range.slice(0, fromBase);
|
||||
const toRange = range.slice(0, toBase);
|
||||
let decValue = cleanedValue
|
||||
let decValue = value
|
||||
.split('')
|
||||
.reverse()
|
||||
.reduce((carry: bigint, digit: string, index: number) => {
|
||||
if (!fromRange.includes(digit)) {
|
||||
throw new Error(`Invalid digit "${digit}" for base ${finalFromBase}.`);
|
||||
throw new Error(`Invalid digit "${digit}" for base ${fromBase}.`);
|
||||
}
|
||||
return (carry += BigInt(fromRange.indexOf(digit)) * BigInt(finalFromBase) ** BigInt(index));
|
||||
return (carry += BigInt(fromRange.indexOf(digit)) * BigInt(fromBase) ** BigInt(index));
|
||||
}, 0n);
|
||||
let newValue = '';
|
||||
while (decValue > 0) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import InputCopyable from '../../components/InputCopyable.vue';
|
||||
import { convertBase, hasNumberPrefix } from './integer-base-converter.model';
|
||||
import { convertBase } from './integer-base-converter.model';
|
||||
import { getErrorMessageIfThrows } from '@/utils/error';
|
||||
|
||||
const inputProps = {
|
||||
@@ -15,8 +15,6 @@ const input = ref('42');
|
||||
const inputBase = ref(10);
|
||||
const outputBase = ref(42);
|
||||
|
||||
const hasInputNumberPrefix = computed(() => hasNumberPrefix(input.value));
|
||||
|
||||
function errorlessConvert(...args: Parameters<typeof convertBase>) {
|
||||
try {
|
||||
return convertBase(...args);
|
||||
@@ -38,7 +36,7 @@ const error = computed(() =>
|
||||
<c-card>
|
||||
<c-input-text v-model:value="input" label="Input number" placeholder="Put your number here (ex: 42)" label-position="left" label-width="110px" mb-2 label-align="right" />
|
||||
|
||||
<n-form-item v-if="!hasInputNumberPrefix" label="Input base" label-placement="left" label-width="110" :show-feedback="false">
|
||||
<n-form-item label="Input base" label-placement="left" label-width="110" :show-feedback="false">
|
||||
<n-input-number v-model:value="inputBase" max="64" min="2" placeholder="Put your input base here (ex: 10)" w-full />
|
||||
</n-form-item>
|
||||
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
import { Braces } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: 'JSON to XML',
|
||||
path: '/json-to-xml',
|
||||
description: 'Convert JSON to XML',
|
||||
keywords: ['json', 'xml'],
|
||||
component: () => import('./json-to-xml.vue'),
|
||||
icon: Braces,
|
||||
createdAt: new Date('2024-08-09'),
|
||||
});
|
||||
@@ -0,0 +1,32 @@
|
||||
<script setup lang="ts">
|
||||
import convert from 'xml-js';
|
||||
import JSON5 from 'json5';
|
||||
import { withDefaultOnError } from '@/utils/defaults';
|
||||
import type { UseValidationRule } from '@/composable/validation';
|
||||
|
||||
const defaultValue = '{"a":{"_attributes":{"x":"1.234","y":"It\'s"}}}';
|
||||
function transformer(value: string) {
|
||||
return withDefaultOnError(() => {
|
||||
return convert.js2xml(JSON5.parse(value), { compact: true });
|
||||
}, '');
|
||||
}
|
||||
|
||||
const rules: UseValidationRule<string>[] = [
|
||||
{
|
||||
validator: (v: string) => v === '' || JSON5.parse(v),
|
||||
message: 'Provided JSON is not valid.',
|
||||
},
|
||||
];
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<format-transformer
|
||||
input-label="Your JSON content"
|
||||
:input-default="defaultValue"
|
||||
input-placeholder="Paste your JSON content here..."
|
||||
output-label="Converted XML"
|
||||
output-language="xml"
|
||||
:transformer="transformer"
|
||||
:input-validation-rules="rules"
|
||||
/>
|
||||
</template>
|
||||
@@ -39,7 +39,7 @@ const validation = useValidation({
|
||||
{{ section.title }}
|
||||
</th>
|
||||
<tr v-for="{ claim, claimDescription, friendlyValue, value } in decodedJWT[section.key]" :key="claim + value">
|
||||
<td class="claims">
|
||||
<td class="claims" style="vertical-align: top;">
|
||||
<span font-bold>
|
||||
{{ claim }}
|
||||
</span>
|
||||
@@ -47,7 +47,7 @@ const validation = useValidation({
|
||||
({{ claimDescription }})
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
<td style="word-wrap: break-word;word-break: break-all;">
|
||||
<span>{{ value }}</span>
|
||||
<span v-if="friendlyValue" ml-2 op-70>
|
||||
({{ friendlyValue }})
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
import { generateLoremIpsum } from './lorem-ipsum-generator.service';
|
||||
import { useCopy } from '@/composable/copy';
|
||||
import { randIntFromInterval } from '@/utils/random';
|
||||
import { computedRefreshable } from '@/composable/computedRefreshable';
|
||||
|
||||
const paragraphs = ref(1);
|
||||
const sentences = ref([3, 8]);
|
||||
@@ -9,7 +10,7 @@ const words = ref([8, 15]);
|
||||
const startWithLoremIpsum = ref(true);
|
||||
const asHTML = ref(false);
|
||||
|
||||
const loremIpsumText = computed(() =>
|
||||
const [loremIpsumText, refreshLoremIpsum] = computedRefreshable(() =>
|
||||
generateLoremIpsum({
|
||||
paragraphCount: paragraphs.value,
|
||||
asHTML: asHTML.value,
|
||||
@@ -18,6 +19,7 @@ const loremIpsumText = computed(() =>
|
||||
startWithLoremIpsum: startWithLoremIpsum.value,
|
||||
}),
|
||||
);
|
||||
|
||||
const { copy } = useCopy({ source: loremIpsumText, text: 'Lorem ipsum copied to the clipboard' });
|
||||
</script>
|
||||
|
||||
@@ -41,10 +43,13 @@ const { copy } = useCopy({ source: loremIpsumText, text: 'Lorem ipsum copied to
|
||||
|
||||
<c-input-text :value="loremIpsumText" multiline placeholder="Your lorem ipsum..." readonly mt-5 rows="5" />
|
||||
|
||||
<div mt-5 flex justify-center>
|
||||
<div mt-5 flex justify-center gap-3>
|
||||
<c-button autofocus @click="copy()">
|
||||
Copy
|
||||
</c-button>
|
||||
<c-button @click="refreshLoremIpsum">
|
||||
Refresh
|
||||
</c-button>
|
||||
</div>
|
||||
</c-card>
|
||||
</template>
|
||||
@@ -0,0 +1,12 @@
|
||||
import { Markdown } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: 'Markdown to HTML',
|
||||
path: '/markdown-to-html',
|
||||
description: 'Convert Markdown to Html and allow to print (as PDF)',
|
||||
keywords: ['markdown', 'html', 'converter', 'pdf'],
|
||||
component: () => import('./markdown-to-html.vue'),
|
||||
icon: Markdown,
|
||||
createdAt: new Date('2024-08-25'),
|
||||
});
|
||||
@@ -0,0 +1,44 @@
|
||||
<script setup lang="ts">
|
||||
import markdownit from 'markdown-it';
|
||||
import TextareaCopyable from '@/components/TextareaCopyable.vue';
|
||||
|
||||
const inputMarkdown = ref('');
|
||||
const outputHtml = computed(() => {
|
||||
const md = markdownit();
|
||||
return md.render(inputMarkdown.value);
|
||||
});
|
||||
|
||||
function printHtml() {
|
||||
const w = window.open();
|
||||
if (w === null) {
|
||||
return;
|
||||
}
|
||||
w.document.body.innerHTML = outputHtml.value;
|
||||
w.print();
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<c-input-text
|
||||
v-model:value="inputMarkdown"
|
||||
multiline raw-text
|
||||
placeholder="Your Markdown content..."
|
||||
rows="8"
|
||||
autofocus
|
||||
label="Your Markdown to convert:"
|
||||
/>
|
||||
|
||||
<n-divider />
|
||||
|
||||
<n-form-item label="Output HTML:">
|
||||
<TextareaCopyable :value="outputHtml" :word-wrap="true" language="html" />
|
||||
</n-form-item>
|
||||
|
||||
<div flex justify-center>
|
||||
<n-button @click="printHtml">
|
||||
Print as PDF
|
||||
</n-button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -0,0 +1,12 @@
|
||||
import { BrandJavascript } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: 'Regex cheatsheet',
|
||||
path: '/regex-memo',
|
||||
description: 'Javascript Regex/Regular Expression cheatsheet',
|
||||
keywords: ['regex', 'regular', 'expression', 'javascript', 'memo', 'cheatsheet'],
|
||||
component: () => import('./regex-memo.vue'),
|
||||
icon: BrandJavascript,
|
||||
createdAt: new Date('2024-09-20'),
|
||||
});
|
||||
@@ -0,0 +1,121 @@
|
||||
### Normal characters
|
||||
|
||||
Expression | Description
|
||||
:--|:--
|
||||
`.` or `[^\n\r]` | any character *excluding* a newline or carriage return
|
||||
`[A-Za-z]` | alphabet
|
||||
`[a-z]` | lowercase alphabet
|
||||
`[A-Z]` | uppercase alphabet
|
||||
`\d` or `[0-9]` | digit
|
||||
`\D` or `[^0-9]` | non-digit
|
||||
`_` | underscore
|
||||
`\w` or `[A-Za-z0-9_]` | alphabet, digit or underscore
|
||||
`\W` or `[^A-Za-z0-9_]` | inverse of `\w`
|
||||
`\S` | inverse of `\s`
|
||||
|
||||
### Whitespace characters
|
||||
|
||||
Expression | Description
|
||||
:--|:--
|
||||
` ` | space
|
||||
`\t` | tab
|
||||
`\n` | newline
|
||||
`\r` | carriage return
|
||||
`\s` | space, tab, newline or carriage return
|
||||
|
||||
### Character set
|
||||
|
||||
Expression | Description
|
||||
:--|:--
|
||||
`[xyz]` | either `x`, `y` or `z`
|
||||
`[^xyz]` | neither `x`, `y` nor `z`
|
||||
`[1-3]` | either `1`, `2` or `3`
|
||||
`[^1-3]` | neither `1`, `2` nor `3`
|
||||
|
||||
- Think of a character set as an `OR` operation on the single characters that are enclosed between the square brackets.
|
||||
- Use `^` after the opening `[` to “negate” the character set.
|
||||
- Within a character set, `.` means a literal period.
|
||||
|
||||
### Characters that require escaping
|
||||
|
||||
#### Outside a character set
|
||||
|
||||
Expression | Description
|
||||
:--|:--
|
||||
`\.` | period
|
||||
`\^` | caret
|
||||
`\$` | dollar sign
|
||||
`\|` | pipe
|
||||
`\\` | back slash
|
||||
`\/` | forward slash
|
||||
`\(` | opening bracket
|
||||
`\)` | closing bracket
|
||||
`\[` | opening square bracket
|
||||
`\]` | closing square bracket
|
||||
`\{` | opening curly bracket
|
||||
`\}` | closing curly bracket
|
||||
|
||||
#### Inside a character set
|
||||
|
||||
Expression | Description
|
||||
:--|:--
|
||||
`\\` | back slash
|
||||
`\]` | closing square bracket
|
||||
|
||||
- A `^` must be escaped only if it occurs immediately after the opening `[` of the character set.
|
||||
- A `-` must be escaped only if it occurs between two alphabets or two digits.
|
||||
|
||||
### Quantifiers
|
||||
|
||||
Expression | Description
|
||||
:--|:--
|
||||
`{2}` | exactly 2
|
||||
`{2,}` | at least 2
|
||||
`{2,7}` | at least 2 but no more than 7
|
||||
`*` | 0 or more
|
||||
`+` | 1 or more
|
||||
`?` | exactly 0 or 1
|
||||
|
||||
- The quantifier goes *after* the expression to be quantified.
|
||||
|
||||
### Boundaries
|
||||
|
||||
Expression | Description
|
||||
:--|:--
|
||||
`^` | start of string
|
||||
`$` | end of string
|
||||
`\b` | word boundary
|
||||
|
||||
- How word boundary matching works:
|
||||
- At the beginning of the string if the first character is `\w`.
|
||||
- Between two adjacent characters within the string, if the first character is `\w` and the second character is `\W`.
|
||||
- At the end of the string if the last character is `\w`.
|
||||
|
||||
### Matching
|
||||
|
||||
Expression | Description
|
||||
:--|:--
|
||||
`foo\|bar` | match either `foo` or `bar`
|
||||
`foo(?=bar)` | match `foo` if it’s before `bar`
|
||||
`foo(?!bar)` | match `foo` if it’s *not* before `bar`
|
||||
`(?<=bar)foo` | match `foo` if it’s after `bar`
|
||||
`(?<!bar)foo` | match `foo` if it’s *not* after `bar`
|
||||
|
||||
### Grouping and capturing
|
||||
|
||||
Expression | Description
|
||||
:--|:--
|
||||
`(foo)` | capturing group; match and capture `foo`
|
||||
`(?:foo)` | non-capturing group; match `foo` but *without* capturing `foo`
|
||||
`(foo)bar\1` | `\1` is a backreference to the 1st capturing group; match `foobarfoo`
|
||||
|
||||
- Capturing groups are only relevant in the following methods:
|
||||
- `string.match(regexp)`
|
||||
- `string.matchAll(regexp)`
|
||||
- `string.replace(regexp, callback)`
|
||||
- `\N` is a backreference to the `Nth` capturing group. Capturing groups are numbered starting from 1.
|
||||
|
||||
## References and tools
|
||||
|
||||
- [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions)
|
||||
- [RegExplained](https://leaverou.github.io/regexplained/)
|
||||
@@ -0,0 +1,32 @@
|
||||
<script setup lang="ts">
|
||||
import { useThemeVars } from 'naive-ui';
|
||||
import Memo from './regex-memo.content.md';
|
||||
|
||||
const themeVars = useThemeVars();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<Memo />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style lang="less" scoped>
|
||||
::v-deep(pre) {
|
||||
margin: 0;
|
||||
padding: 15px 22px;
|
||||
background-color: v-bind('themeVars.cardColor');
|
||||
border-radius: 4px;
|
||||
overflow: auto;
|
||||
}
|
||||
::v-deep(table) {
|
||||
border-collapse: collapse;
|
||||
}
|
||||
::v-deep(table), ::v-deep(td), ::v-deep(th) {
|
||||
border: 1px solid v-bind('themeVars.textColor1');
|
||||
padding: 5px;
|
||||
}
|
||||
::v-deep(a) {
|
||||
color: v-bind('themeVars.textColor1');
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,12 @@
|
||||
import { Language } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: 'Regex Tester',
|
||||
path: '/regex-tester',
|
||||
description: 'Regex Tester',
|
||||
keywords: ['regex', 'tester', 'sample', 'expression'],
|
||||
component: () => import('./regex-tester.vue'),
|
||||
icon: Language,
|
||||
createdAt: new Date('2024-09-20'),
|
||||
});
|
||||
@@ -0,0 +1,106 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { matchRegex } from './regex-tester.service';
|
||||
|
||||
const regexesData = [
|
||||
{
|
||||
regex: '',
|
||||
text: '',
|
||||
flags: '',
|
||||
result: [],
|
||||
},
|
||||
{
|
||||
regex: '.*',
|
||||
text: '',
|
||||
flags: '',
|
||||
result: [],
|
||||
},
|
||||
{
|
||||
regex: '',
|
||||
text: 'aaa',
|
||||
flags: '',
|
||||
result: [],
|
||||
},
|
||||
{
|
||||
regex: 'a',
|
||||
text: 'baaa',
|
||||
flags: '',
|
||||
result: [
|
||||
{
|
||||
captures: [],
|
||||
groups: [],
|
||||
index: 1,
|
||||
value: 'a',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
regex: '(.)(?<g>r)',
|
||||
text: 'azertyr',
|
||||
flags: 'g',
|
||||
result: [
|
||||
{
|
||||
captures: [
|
||||
{
|
||||
end: 3,
|
||||
name: '1',
|
||||
start: 2,
|
||||
value: 'e',
|
||||
},
|
||||
{
|
||||
end: 4,
|
||||
name: '2',
|
||||
start: 3,
|
||||
value: 'r',
|
||||
},
|
||||
],
|
||||
groups: [
|
||||
{
|
||||
end: 4,
|
||||
name: 'g',
|
||||
start: 3,
|
||||
value: 'r',
|
||||
},
|
||||
],
|
||||
index: 2,
|
||||
value: 'er',
|
||||
},
|
||||
{
|
||||
captures: [
|
||||
{
|
||||
end: 6,
|
||||
name: '1',
|
||||
start: 5,
|
||||
value: 'y',
|
||||
},
|
||||
{
|
||||
end: 7,
|
||||
name: '2',
|
||||
start: 6,
|
||||
value: 'r',
|
||||
},
|
||||
],
|
||||
groups: [
|
||||
{
|
||||
end: 7,
|
||||
name: 'g',
|
||||
start: 6,
|
||||
value: 'r',
|
||||
},
|
||||
],
|
||||
index: 5,
|
||||
value: 'yr',
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
describe('regex-tester', () => {
|
||||
for (const reg of regexesData) {
|
||||
const { regex, text, flags, result: expected_result } = reg;
|
||||
it(`Should matchRegex("${regex}","${text}","${flags}") return correct result`, async () => {
|
||||
const result = matchRegex(regex, text, `${flags}d`);
|
||||
|
||||
expect(result).to.deep.equal(expected_result);
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,61 @@
|
||||
interface RegExpGroupIndices {
|
||||
[name: string]: [number, number]
|
||||
}
|
||||
interface RegExpIndices extends Array<[number, number]> {
|
||||
groups: RegExpGroupIndices
|
||||
}
|
||||
interface RegExpExecArrayWithIndices extends RegExpExecArray {
|
||||
indices: RegExpIndices
|
||||
}
|
||||
interface GroupCapture {
|
||||
name: string
|
||||
value: string
|
||||
start: number
|
||||
end: number
|
||||
};
|
||||
|
||||
export function matchRegex(regex: string, text: string, flags: string) {
|
||||
// if (regex === '' || text === '') {
|
||||
// return [];
|
||||
// }
|
||||
|
||||
let lastIndex = -1;
|
||||
const re = new RegExp(regex, flags);
|
||||
const results = [];
|
||||
let match = re.exec(text) as RegExpExecArrayWithIndices;
|
||||
while (match !== null) {
|
||||
if (re.lastIndex === lastIndex || match[0] === '') {
|
||||
break;
|
||||
}
|
||||
const indices = match.indices;
|
||||
const captures: Array<GroupCapture> = [];
|
||||
Object.entries(match).forEach(([captureName, captureValue]) => {
|
||||
if (captureName !== '0' && captureName.match(/\d+/)) {
|
||||
captures.push({
|
||||
name: captureName,
|
||||
value: captureValue,
|
||||
start: indices[Number(captureName)][0],
|
||||
end: indices[Number(captureName)][1],
|
||||
});
|
||||
}
|
||||
});
|
||||
const groups: Array<GroupCapture> = [];
|
||||
Object.entries(match.groups || {}).forEach(([groupName, groupValue]) => {
|
||||
groups.push({
|
||||
name: groupName,
|
||||
value: groupValue,
|
||||
start: indices.groups[groupName][0],
|
||||
end: indices.groups[groupName][1],
|
||||
});
|
||||
});
|
||||
results.push({
|
||||
index: match.index,
|
||||
value: match[0],
|
||||
captures,
|
||||
groups,
|
||||
});
|
||||
lastIndex = re.lastIndex;
|
||||
match = re.exec(text) as RegExpExecArrayWithIndices;
|
||||
}
|
||||
return results;
|
||||
}
|
||||
@@ -0,0 +1,193 @@
|
||||
<script setup lang="ts">
|
||||
import RandExp from 'randexp';
|
||||
import { render } from '@regexper/render';
|
||||
import type { ShadowRootExpose } from 'vue-shadow-dom';
|
||||
import { matchRegex } from './regex-tester.service';
|
||||
import { useValidation } from '@/composable/validation';
|
||||
import { useQueryParamOrStorage } from '@/composable/queryParams';
|
||||
|
||||
const regex = useQueryParamOrStorage({ name: 'regex', storageName: 'regex-tester:regex', defaultValue: '' });
|
||||
const text = ref('');
|
||||
const global = ref(true);
|
||||
const ignoreCase = ref(false);
|
||||
const multiline = ref(false);
|
||||
const dotAll = ref(true);
|
||||
const unicode = ref(true);
|
||||
const unicodeSets = ref(false);
|
||||
const visualizerSVG = ref<ShadowRootExpose>();
|
||||
|
||||
const regexValidation = useValidation({
|
||||
source: regex,
|
||||
rules: [
|
||||
{
|
||||
message: 'Invalid regex: {0}',
|
||||
validator: value => new RegExp(value),
|
||||
getErrorMessage: (value) => {
|
||||
const _ = new RegExp(value);
|
||||
return '';
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
const results = computed(() => {
|
||||
let flags = 'd';
|
||||
if (global.value) {
|
||||
flags += 'g';
|
||||
}
|
||||
if (ignoreCase.value) {
|
||||
flags += 'i';
|
||||
}
|
||||
if (multiline.value) {
|
||||
flags += 'm';
|
||||
}
|
||||
if (dotAll.value) {
|
||||
flags += 's';
|
||||
}
|
||||
if (unicode.value) {
|
||||
flags += 'u';
|
||||
}
|
||||
else if (unicodeSets.value) {
|
||||
flags += 'v';
|
||||
}
|
||||
|
||||
try {
|
||||
return matchRegex(regex.value, text.value, flags);
|
||||
}
|
||||
catch (_) {
|
||||
return [];
|
||||
}
|
||||
});
|
||||
|
||||
const sample = computed(() => {
|
||||
try {
|
||||
const randexp = new RandExp(new RegExp(regex.value.replace(/\(\?\<[^\>]*\>/g, '(?:')));
|
||||
return randexp.gen();
|
||||
}
|
||||
catch (_) {
|
||||
return '';
|
||||
}
|
||||
});
|
||||
|
||||
watchEffect(
|
||||
async () => {
|
||||
const regexValue = regex.value;
|
||||
// shadow root is required:
|
||||
// @regexper/render append a <defs><style> that broke svg transparency of icons in the whole site
|
||||
const visualizer = visualizerSVG.value?.shadow_root;
|
||||
if (visualizer) {
|
||||
while (visualizer.lastChild) {
|
||||
visualizer.removeChild(visualizer.lastChild);
|
||||
}
|
||||
const svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
|
||||
try {
|
||||
await render(regexValue, svg);
|
||||
}
|
||||
catch (_) {
|
||||
}
|
||||
visualizer.appendChild(svg);
|
||||
}
|
||||
},
|
||||
);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div max-w-600px>
|
||||
<c-card title="Regex" mb-1>
|
||||
<c-input-text
|
||||
v-model:value="regex"
|
||||
label="Regex to test:"
|
||||
placeholder="Put the regex to test"
|
||||
multiline
|
||||
rows="3"
|
||||
:validation="regexValidation"
|
||||
/>
|
||||
<router-link target="_blank" to="/regex-memo" mb-1 mt-1>
|
||||
See Regular Expression Cheatsheet
|
||||
</router-link>
|
||||
<n-space>
|
||||
<n-checkbox v-model:checked="global">
|
||||
<span title="Global search">Global search. (<code>g</code>)</span>
|
||||
</n-checkbox>
|
||||
<n-checkbox v-model:checked="ignoreCase">
|
||||
<span title="Case-insensitive search">Case-insensitive search. (<code>i</code>)</span>
|
||||
</n-checkbox>
|
||||
<n-checkbox v-model:checked="multiline">
|
||||
<span title="Allows ^ and $ to match next to newline characters.">Multiline(<code>m</code>)</span>
|
||||
</n-checkbox>
|
||||
<n-checkbox v-model:checked="dotAll">
|
||||
<span title="Allows . to match newline characters.">Singleline(<code>s</code>)</span>
|
||||
</n-checkbox>
|
||||
<n-checkbox v-model:checked="unicode">
|
||||
<span title="Unicode; treat a pattern as a sequence of Unicode code points.">Unicode(<code>u</code>)</span>
|
||||
</n-checkbox>
|
||||
<n-checkbox v-model:checked="unicodeSets">
|
||||
<span title="An upgrade to the u mode with more Unicode features.">Unicode Sets (<code>v</code>)</span>
|
||||
</n-checkbox>
|
||||
</n-space>
|
||||
|
||||
<n-divider />
|
||||
|
||||
<c-input-text
|
||||
v-model:value="text"
|
||||
label="Text to match:"
|
||||
placeholder="Put the text to match"
|
||||
multiline
|
||||
rows="5"
|
||||
/>
|
||||
</c-card>
|
||||
|
||||
<c-card title="Matches" mb-1 mt-3>
|
||||
<n-table v-if="results?.length > 0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">
|
||||
Index in text
|
||||
</th>
|
||||
<th scope="col">
|
||||
Value
|
||||
</th>
|
||||
<th scope="col">
|
||||
Captures
|
||||
</th>
|
||||
<th scope="col">
|
||||
Groups
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="match of results" :key="match.index">
|
||||
<td>{{ match.index }}</td>
|
||||
<td>{{ match.value }}</td>
|
||||
<td>
|
||||
<ul>
|
||||
<li v-for="capture in match.captures" :key="capture.name">
|
||||
"{{ capture.name }}" = {{ capture.value }} [{{ capture.start }} - {{ capture.end }}]
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
<td>
|
||||
<ul>
|
||||
<li v-for="group in match.groups" :key="group.name">
|
||||
"{{ group.name }}" = {{ group.value }} [{{ group.start }} - {{ group.end }}]
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</n-table>
|
||||
<c-alert v-else>
|
||||
No match
|
||||
</c-alert>
|
||||
</c-card>
|
||||
|
||||
<c-card title="Sample matching text" mt-3>
|
||||
<pre style="white-space: pre-wrap; word-break: break-all;">{{ sample }}</pre>
|
||||
</c-card>
|
||||
|
||||
<c-card title="Regex Diagram" style="overflow-x: scroll;" mt-3>
|
||||
<shadow-root ref="visualizerSVG">
|
||||
 
|
||||
</shadow-root>
|
||||
</c-card>
|
||||
</div>
|
||||
</template>
|
||||
@@ -0,0 +1,12 @@
|
||||
import { Mailbox } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: 'Outlook Safelink decoder',
|
||||
path: '/safelink-decoder',
|
||||
description: 'Decode Outlook SafeLink links',
|
||||
keywords: ['outlook', 'safelink', 'decoder'],
|
||||
component: () => import('./safelink-decoder.vue'),
|
||||
icon: Mailbox,
|
||||
createdAt: new Date('2024-03-11'),
|
||||
});
|
||||
@@ -0,0 +1,21 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { decodeSafeLinksURL } from './safelink-decoder.service';
|
||||
|
||||
describe('safelink-decoder', () => {
|
||||
describe('decodeSafeLinksURL', () => {
|
||||
describe('decode outlook safelink urls', () => {
|
||||
it('should decode basic safelink urls', () => {
|
||||
expect(decodeSafeLinksURL('https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.google.com%2Fsearch%3Fq%3Dsafelink%26rlz%3D1&data=05%7C02%7C%7C1ed07253975b46da1d1508dc3443752a%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638442711583216725%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=%2BQY0HBnnxfI7pzZoxzlhZdDvYu80LwQB0zUUjrffVnk%3D&reserved=0'))
|
||||
.toBe('https://www.google.com/search?q=safelink&rlz=1');
|
||||
});
|
||||
it('should decode encoded safelink urls', () => {
|
||||
expect(decodeSafeLinksURL('https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.google.com%2Fsearch%3Fq%3Dsafelink%26rlz%3D1&data=05%7C02%7C%7C1ed07253975b46da1d1508dc3443752a%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638442711583216725%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=%2BQY0HBnnxfI7pzZoxzlhZdDvYu80LwQB0zUUjrffVnk%3D&reserved=0'))
|
||||
.toBe('https://www.google.com/search?q=safelink&rlz=1');
|
||||
});
|
||||
it('throw on not outlook safelink urls', () => {
|
||||
expect(() => decodeSafeLinksURL('https://google.com'))
|
||||
.toThrow('Invalid SafeLinks URL provided');
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,7 @@
|
||||
export function decodeSafeLinksURL(safeLinksUrl: string) {
|
||||
if (!safeLinksUrl.match(/\.safelinks\.protection\.outlook\.com/)) {
|
||||
throw new Error('Invalid SafeLinks URL provided');
|
||||
}
|
||||
|
||||
return new URL(safeLinksUrl).searchParams.get('url');
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
<script setup lang="ts">
|
||||
import { decodeSafeLinksURL } from './safelink-decoder.service';
|
||||
import TextareaCopyable from '@/components/TextareaCopyable.vue';
|
||||
|
||||
const inputSafeLinkUrl = ref('');
|
||||
const outputDecodedUrl = computed(() => {
|
||||
try {
|
||||
return decodeSafeLinksURL(inputSafeLinkUrl.value);
|
||||
}
|
||||
catch (e: any) {
|
||||
return e.toString();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<c-input-text
|
||||
v-model:value="inputSafeLinkUrl"
|
||||
raw-text
|
||||
placeholder="Your input Outlook SafeLink Url..."
|
||||
autofocus
|
||||
label="Your input Outlook SafeLink Url:"
|
||||
/>
|
||||
|
||||
<n-divider />
|
||||
|
||||
<n-form-item label="Output decoded URL:">
|
||||
<TextareaCopyable :value="outputDecodedUrl" :word-wrap="true" />
|
||||
</n-form-item>
|
||||
</div>
|
||||
</template>
|
||||
@@ -20,7 +20,7 @@ export function createToken({
|
||||
withLowercase ? 'abcdefghijklmopqrstuvwxyz' : '',
|
||||
withNumbers ? '0123456789' : '',
|
||||
withSymbols ? '.,;:!?./-"\'#{([-|\\@)]=}*+' : '',
|
||||
].join(''); ;
|
||||
].join('');
|
||||
|
||||
return shuffleString(allAlphabet.repeat(length)).substring(0, length);
|
||||
}
|
||||
@@ -23,7 +23,7 @@ const decodeInput = ref('Hello%20world%20%3A)');
|
||||
const decodeOutput = computed(() => withDefaultOnError(() => decodeURIComponent(decodeInput.value), ''));
|
||||
|
||||
const decodeValidation = useValidation({
|
||||
source: encodeInput,
|
||||
source: decodeInput,
|
||||
rules: [
|
||||
{
|
||||
validator: value => isNotThrowing(() => decodeURIComponent(value)),
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
import { Braces } from '@vicons/tabler';
|
||||
import { defineTool } from '../tool';
|
||||
|
||||
export const tool = defineTool({
|
||||
name: 'XML to JSON',
|
||||
path: '/xml-to-json',
|
||||
description: 'Convert XML to JSON',
|
||||
keywords: ['xml', 'json'],
|
||||
component: () => import('./xml-to-json.vue'),
|
||||
icon: Braces,
|
||||
createdAt: new Date('2024-08-09'),
|
||||
});
|
||||
@@ -0,0 +1,32 @@
|
||||
<script setup lang="ts">
|
||||
import convert from 'xml-js';
|
||||
import { isValidXML } from '../xml-formatter/xml-formatter.service';
|
||||
import { withDefaultOnError } from '@/utils/defaults';
|
||||
import type { UseValidationRule } from '@/composable/validation';
|
||||
|
||||
const defaultValue = '<a x="1.234" y="It\'s"/>';
|
||||
function transformer(value: string) {
|
||||
return withDefaultOnError(() => {
|
||||
return JSON.stringify(convert.xml2js(value, { compact: true }), null, 2);
|
||||
}, '');
|
||||
}
|
||||
|
||||
const rules: UseValidationRule<string>[] = [
|
||||
{
|
||||
validator: isValidXML,
|
||||
message: 'Provided XML is not valid.',
|
||||
},
|
||||
];
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<format-transformer
|
||||
input-label="Your XML content"
|
||||
:input-default="defaultValue"
|
||||
input-placeholder="Paste your XML content here..."
|
||||
output-label="Converted JSON"
|
||||
output-language="json"
|
||||
:transformer="transformer"
|
||||
:input-validation-rules="rules"
|
||||
/>
|
||||
</template>
|
||||
@@ -38,7 +38,8 @@ describe('base64 utils', () => {
|
||||
|
||||
it('should throw for incorrect base64 string', () => {
|
||||
expect(() => base64ToText('a')).to.throw('Incorrect base64 string');
|
||||
expect(() => base64ToText(' ')).to.throw('Incorrect base64 string');
|
||||
// should not really be false because trimming of space is now implied
|
||||
// expect(() => base64ToText(' ')).to.throw('Incorrect base64 string');
|
||||
expect(() => base64ToText('é')).to.throw('Incorrect base64 string');
|
||||
// missing final '='
|
||||
expect(() => base64ToText('bG9yZW0gaXBzdW0')).to.throw('Incorrect base64 string');
|
||||
@@ -56,17 +57,17 @@ describe('base64 utils', () => {
|
||||
|
||||
it('should return false for incorrect base64 string', () => {
|
||||
expect(isValidBase64('a')).to.eql(false);
|
||||
expect(isValidBase64(' ')).to.eql(false);
|
||||
expect(isValidBase64('é')).to.eql(false);
|
||||
expect(isValidBase64('data:text/plain;notbase64,YQ==')).to.eql(false);
|
||||
// missing final '='
|
||||
expect(isValidBase64('bG9yZW0gaXBzdW0')).to.eql(false);
|
||||
});
|
||||
|
||||
it('should return false for untrimmed correct base64 string', () => {
|
||||
expect(isValidBase64('bG9yZW0gaXBzdW0= ')).to.eql(false);
|
||||
expect(isValidBase64(' LTE=')).to.eql(false);
|
||||
expect(isValidBase64(' YQ== ')).to.eql(false);
|
||||
it('should return true for untrimmed correct base64 string', () => {
|
||||
expect(isValidBase64('bG9yZW0gaXBzdW0= ')).to.eql(true);
|
||||
expect(isValidBase64(' LTE=')).to.eql(true);
|
||||
expect(isValidBase64(' YQ== ')).to.eql(true);
|
||||
expect(isValidBase64(' ')).to.eql(true);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
+7
-4
@@ -1,7 +1,9 @@
|
||||
import { Base64 } from 'js-base64';
|
||||
|
||||
export { textToBase64, base64ToText, isValidBase64, removePotentialDataAndMimePrefix };
|
||||
|
||||
function textToBase64(str: string, { makeUrlSafe = false }: { makeUrlSafe?: boolean } = {}) {
|
||||
const encoded = window.btoa(str);
|
||||
const encoded = Base64.encode(str);
|
||||
return makeUrlSafe ? makeUriSafe(encoded) : encoded;
|
||||
}
|
||||
|
||||
@@ -16,7 +18,7 @@ function base64ToText(str: string, { makeUrlSafe = false }: { makeUrlSafe?: bool
|
||||
}
|
||||
|
||||
try {
|
||||
return window.atob(cleanStr);
|
||||
return Base64.decode(cleanStr);
|
||||
}
|
||||
catch (_) {
|
||||
throw new Error('Incorrect base64 string');
|
||||
@@ -34,10 +36,11 @@ function isValidBase64(str: string, { makeUrlSafe = false }: { makeUrlSafe?: boo
|
||||
}
|
||||
|
||||
try {
|
||||
const reEncodedBase64 = Base64.fromUint8Array(Base64.toUint8Array(cleanStr));
|
||||
if (makeUrlSafe) {
|
||||
return removePotentialPadding(window.btoa(window.atob(cleanStr))) === cleanStr;
|
||||
return removePotentialPadding(reEncodedBase64) === cleanStr;
|
||||
}
|
||||
return window.btoa(window.atob(cleanStr)) === cleanStr;
|
||||
return reEncodedBase64 === cleanStr.replace(/\s/g, '');
|
||||
}
|
||||
catch (err) {
|
||||
return false;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { resolve } from 'node:path';
|
||||
import { URL, fileURLToPath } from 'node:url';
|
||||
import { nodePolyfills } from 'vite-plugin-node-polyfills';
|
||||
|
||||
import VueI18n from '@intlify/unplugin-vue-i18n/vite';
|
||||
import vue from '@vitejs/plugin-vue';
|
||||
@@ -97,6 +98,7 @@ export default defineConfig({
|
||||
resolvers: [NaiveUiResolver(), IconsResolver({ prefix: 'icon' })],
|
||||
}),
|
||||
Unocss(),
|
||||
nodePolyfills(),
|
||||
],
|
||||
base: baseUrl,
|
||||
resolve: {
|
||||
|
||||
Reference in new issue
Block a user