Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/birajmainali/short-crypter

short-crypter, which is a simple two-way crypter library for encrypting and decrypting text in very short form.
https://github.com/birajmainali/short-crypter

encrypter js-crypter

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# short-crypter

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

## Dependencies

- [Vue](https://vuejs.org) : This library is directly depended on Vue3

## Installation

> npm

```bash
npm i short-crypter
```

> yarn

```bash
yarn add short-crypter
```

## Basic Usage

```vue

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)
})



Plain Text:



Encrypted :





Encrypted Text:



Plain Text:




```

[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).

## Customize configuration

See [Vite Configuration Reference](https://vitejs.dev/config/).

## Project Setup

```sh
npm install
```

### Compile and Hot-Reload for Development

```sh
npm run dev
```

### Compile and Minify for Production

```sh
npm run build
```