aboutsummaryrefslogtreecommitdiff
path: root/src/tools/hmac-generator/hmac-generator.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/hmac-generator/hmac-generator.vue')
-rw-r--r--src/tools/hmac-generator/hmac-generator.vue60
1 files changed, 29 insertions, 31 deletions
diff --git a/src/tools/hmac-generator/hmac-generator.vue b/src/tools/hmac-generator/hmac-generator.vue
index 463e27b..fda3988 100644
--- a/src/tools/hmac-generator/hmac-generator.vue
+++ b/src/tools/hmac-generator/hmac-generator.vue
@@ -51,37 +51,35 @@ const { copy } = useCopy({ source: hmac });
<c-input-text v-model:value="secret" raw-text placeholder="Enter the secret key..." label="Secret key" clearable />
<div flex gap-2>
- <n-form-item label="Hashing function" flex-1>
- <n-select
- v-model:value="hashFunction"
- placeholder="Select an hashing function..."
- :options="Object.keys(algos).map((label) => ({ label, value: label }))"
- />
- </n-form-item>
- <n-form-item label="Output encoding" flex-1>
- <n-select
- v-model:value="encoding"
- placeholder="Select the result encoding..."
- :options="[
- {
- label: 'Binary (base 2)',
- value: 'Bin',
- },
- {
- label: 'Hexadecimal (base 16)',
- value: 'Hex',
- },
- {
- label: 'Base64 (base 64)',
- value: 'Base64',
- },
- {
- label: 'Base64-url (base 64 with url safe chars)',
- value: 'Base64url',
- },
- ]"
- />
- </n-form-item>
+ <c-select
+ v-model:value="hashFunction" label="Hashing function"
+ flex-1
+ placeholder="Select an hashing function..."
+ :options="Object.keys(algos).map((label) => ({ label, value: label }))"
+ />
+ <c-select
+ v-model:value="encoding" label="Output encoding"
+ flex-1
+ placeholder="Select the result encoding..."
+ :options="[
+ {
+ label: 'Binary (base 2)',
+ value: 'Bin',
+ },
+ {
+ label: 'Hexadecimal (base 16)',
+ value: 'Hex',
+ },
+ {
+ label: 'Base64 (base 64)',
+ value: 'Base64',
+ },
+ {
+ label: 'Base64-url (base 64 with url safe chars)',
+ value: 'Base64url',
+ },
+ ]"
+ />
</div>
<input-copyable v-model:value="hmac" type="textarea" placeholder="The result of the HMAC..." label="HMAC of your text" />
<div flex justify-center>