diff options
Diffstat (limited to 'src/tools/bcrypt/bcrypt.vue')
-rw-r--r-- | src/tools/bcrypt/bcrypt.vue | 49 |
1 files changed, 17 insertions, 32 deletions
diff --git a/src/tools/bcrypt/bcrypt.vue b/src/tools/bcrypt/bcrypt.vue index a091fb7..c0c86f6 100644 --- a/src/tools/bcrypt/bcrypt.vue +++ b/src/tools/bcrypt/bcrypt.vue @@ -1,21 +1,20 @@ <template> <c-card title="Hash"> - <n-form label-width="120"> - <n-form-item label="Your string: " label-placement="left"> - <n-input - v-model:value="input" - placeholder="Your string to bcrypt..." - autocomplete="off" - autocorrect="off" - autocapitalize="off" - spellcheck="false" - /> - </n-form-item> - <n-form-item label="Salt count: " label-placement="left"> - <n-input-number v-model:value="saltCount" placeholder="Salt rounds..." :max="10" :min="0" w-full /> - </n-form-item> - <n-input :value="hashed" readonly style="text-align: center" /> - </n-form> + <c-input-text + v-model:value="input" + placeholder="Your string to bcrypt..." + raw-text + label="Your string: " + label-position="left" + label-width="120px" + 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-form-item> + + <c-input-text :value="hashed" readonly text-center /> + <n-space justify="center" mt-5> <c-button @click="copy"> Copy hash </c-button> </n-space> @@ -24,24 +23,10 @@ <c-card title="Compare string with hash"> <n-form label-width="120"> <n-form-item label="Your string: " label-placement="left"> - <n-input - v-model:value="compareString" - placeholder="Your string to compare..." - autocomplete="off" - autocorrect="off" - autocapitalize="off" - spellcheck="false" - /> + <c-input-text v-model:value="compareString" placeholder="Your string to compare..." raw-text /> </n-form-item> <n-form-item label="Your hash: " label-placement="left"> - <n-input - v-model:value="compareHash" - placeholder="Your hahs to compare..." - autocomplete="off" - autocorrect="off" - autocapitalize="off" - spellcheck="false" - /> + <c-input-text v-model:value="compareHash" placeholder="Your hahs to compare..." raw-text /> </n-form-item> <n-form-item label="Do they match ? " label-placement="left" :show-feedback="false"> <div class="compare-result" :class="{ positive: compareMatch }"> |