vue-crypt

Vue plugin to encrypt and decrypt messages
3,481
Install
npm install vue-crypt
Latest Version:1.0.0
License:MIT
Last Updated:Jun 13, 2019
Links: GitHub  ·  npm
Maintainer: thhan

Crypto Vue-Plugin

Easy way to encrypt and decrypt with AES and RSA in Vue with pure JavaScript.

Installation

import Vue from 'vue'
import vueCrypt from 'vue-crypt'

Vue.use(VueCrypt)

AES Example

this.$aes.setKey('myPassword')

let encrypted = this.$aes.encrypt('Secret message')
let decrypted = this.$aes.decrypt(encrypted)

// Console print message "Secret message"
console.log(decrypted)

RSA Example

// Generate new Key with 1024 Bits
this.$rsa.setBit(1024)

let encrypted = this.$rsa.encrypt('Top-Secret message')
let decrypted = this.$rsa.decrypt(encrypted)

// Console print message "Top-Secret message"
console.log(decrypted)

Related Packages

jwebv

vue-tool

1,298 0
@composy/crypto-vue

Vue 3 adapter for @composy/crypto-core - Composables, plugins, and directives

0
@alikhalilll/nuxt-crypto

Symmetric Web Crypto service for Nuxt 3/4. AES-256-GCM + PBKDF2 with key caching...

1,675 4
@noy-db/in-pinia

Pinia integration for noy-db — defineNoydbStore() and the augmentation plugin fo...

19,220 0
@noy-db/in-nuxt

Nuxt 4 module for noy-db — auto-imports, SSR-safe runtime plugin, and the @noy-d...

18,164 0

Version History

Version Released License
1.0.0 MIT