vue-crypt
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
@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 |