short-crypter

1.0.0 • Public • Published

short-crypter

This template should help get you started developing with Vue 3 in Vite.

Dependencies

  • Vue : This library is directly depended on Vue3

Installation

npm

npm i short-crypter

yarn

yarn add short-crypter

Basic Usage

<script setup>
import {ref, watch} from "vue";
import useCrypter from "@/hooks/useCrypter.js";

const {encrypt, decrypt} = useCrypter();
const text = ref("");
const encryptedText = ref("");

const encryptText = ref("");
const decryptedText = ref("");

watch(text, (value) => {
  encryptedText.value = encrypt(value)
})

watch(encryptText, (value) => {
  decryptedText.value = decrypt(value)
})

</script>

<template>
  <div class="container">
    <main>
      <h4>Plain Text: </h4>
      <textarea v-model="text" placeholder="Enter text here" rows="20" cols="100"></textarea>
      <h4>Encrypted :</h4>
      <textarea v-model="encryptedText" placeholder="Enter text here" rows="20" cols="100"></textarea>
    </main>
    <main>
      <h4>Encrypted Text: </h4>
      <textarea v-model="encryptText" placeholder="Enter text here" rows="20" cols="100"></textarea>
      <h4>Plain Text:</h4>
      <textarea v-model="decryptedText" placeholder="Enter text here" rows="20" cols="100"></textarea>
    </main>
  </div>
</template>
<style scoped>

VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).

Customize configuration

See Vite Configuration Reference.

Project Setup

npm install

Compile and Hot-Reload for Development

npm run dev

Compile and Minify for Production

npm run build

Package Sidebar

Install

npm i short-crypter

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

55.9 kB

Total Files

27

Last publish

Collaborators

  • birajmainali