Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/birajmainali/short-crypter
- Owner: BirajMainali
- Created: 2022-11-10T12:56:20.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-11-10T13:20:04.000Z (about 2 years ago)
- Last Synced: 2024-10-05T16:37:06.215Z (3 months ago)
- Topics: encrypter, js-crypter
- Language: Vue
- Homepage: https://www.npmjs.com/package/short-crypter
- Size: 48.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```