From 0f3b7445ad1f945d9b364476147bf824ac309a6c Mon Sep 17 00:00:00 2001 From: Corentin Thomasset Date: Mon, 4 Apr 2022 00:25:53 +0200 Subject: [PATCH] feat(tool): text hash --- src/tools/hash-text/hash-text.vue | 72 +++++++++++++++++++++++++++++++ src/tools/hash-text/index.ts | 11 +++++ src/tools/index.ts | 3 +- 3 files changed, 85 insertions(+), 1 deletion(-) create mode 100644 src/tools/hash-text/hash-text.vue create mode 100644 src/tools/hash-text/index.ts diff --git a/src/tools/hash-text/hash-text.vue b/src/tools/hash-text/hash-text.vue new file mode 100644 index 00000000..30a97b80 --- /dev/null +++ b/src/tools/hash-text/hash-text.vue @@ -0,0 +1,72 @@ + + + + + \ No newline at end of file diff --git a/src/tools/hash-text/index.ts b/src/tools/hash-text/index.ts new file mode 100644 index 00000000..fbc9a2c3 --- /dev/null +++ b/src/tools/hash-text/index.ts @@ -0,0 +1,11 @@ +import { EyeOff } from '@vicons/tabler'; +import type { ITool } from '../Tool'; + +export const tool: ITool = { + name: 'Hash text', + path: '/hash-text', + description: 'Hash a text string using the function you need : MD5, SHA1, SHA256, SHA224, SHA512, SHA384, SHA3 or RIPEMD160', + keywords: ['hash', 'digest', 'crypto', 'security', 'text', 'MD5', 'SHA1', 'SHA256', 'SHA224', 'SHA512', 'SHA384', 'SHA3', 'RIPEMD160'], + component: () => import('./hash-text.vue'), + icon: EyeOff, +}; diff --git a/src/tools/index.ts b/src/tools/index.ts index d7884d26..431cbb24 100644 --- a/src/tools/index.ts +++ b/src/tools/index.ts @@ -2,12 +2,13 @@ import { LockOpen } from '@vicons/tabler'; import type { ToolCategory } from './Tool'; import { tool as tokenGenerator } from './token-generator'; +import { tool as hashText } from './hash-text'; export const toolsByCategory: ToolCategory[] = [ { name: 'Crypto', icon: LockOpen, - components: [tokenGenerator], + components: [tokenGenerator, hashText], }, ];