Giter Site home page Giter Site logo

birajmainali / short-crypter Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 50 KB

short-crypter, which is a simple two-way crypter library for encrypting and decrypting text in very short form.

Home Page: https://www.npmjs.com/package/short-crypter

HTML 1.95% Vue 71.49% CSS 11.82% JavaScript 14.74%
encrypter js-crypter

short-crypter's Introduction

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

short-crypter's People

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.