All Projects → tpenaranda → vue-cryptojs

tpenaranda / vue-cryptojs

Licence: other
A small wrapper for integrating crypto-js into VueJS

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to vue-cryptojs

doctrine-extensions
Doctrine2 behavioral extension Transformable
Stars: ✭ 14 (-17.65%)
Mutual labels:  encrypt, decrypt
Encipherr
Open Source online AES encryption and decryption tool
Stars: ✭ 21 (+23.53%)
Mutual labels:  encrypt, decrypt
MGObfuscator
An easy encryptor / decryptor for iOS
Stars: ✭ 17 (+0%)
Mutual labels:  encrypt, decrypt
common-secure
提供一些加密算法java代码封装 包括 RSA/AES/DES/3DES/MD5/SHA/HmacSHA256
Stars: ✭ 37 (+117.65%)
Mutual labels:  encrypt, decrypt
secusu
SЁCU is a public API to store self-destructing data payloads with url shortener and handle anonymous chat-rooms.
Stars: ✭ 24 (+41.18%)
Mutual labels:  encrypt, decrypt
secret-img
encrypt/decrypt images 🤫
Stars: ✭ 14 (-17.65%)
Mutual labels:  encrypt, decrypt
Hololensartoolkit
Marker tracking using the front-facing camera of HoloLens (both 1 and 2) and Unity, with a wrapper of ARToolKit built for UWP (Windows Universal Platform)
Stars: ✭ 238 (+1300%)
Mutual labels:  wrapper
django-mirage-field
Django model field encrypt/decrypt your data, keep secret in database.
Stars: ✭ 86 (+405.88%)
Mutual labels:  encrypt
Zenpy
Python wrapper for the Zendesk API
Stars: ✭ 222 (+1205.88%)
Mutual labels:  wrapper
Scikit Geometry
Scientific Python Geometric Algorithms Library
Stars: ✭ 220 (+1194.12%)
Mutual labels:  wrapper
node-destiny-2
🌑 A zero dependency Destiny 2 API wrapper written in Node.js
Stars: ✭ 23 (+35.29%)
Mutual labels:  wrapper
decrypt-ios-apps-script
Python script to SSH into your jailbroken device, decrypt an iOS App and transfer it to your local machine
Stars: ✭ 72 (+323.53%)
Mutual labels:  decrypt
Mipp
MIPP is a portable wrapper for SIMD instructions written in C++11. It supports NEON, SSE, AVX and AVX-512.
Stars: ✭ 253 (+1388.24%)
Mutual labels:  wrapper
Await Of
await wrapper for easier errors handling without try-catch
Stars: ✭ 240 (+1311.76%)
Mutual labels:  wrapper
Nodehun
The Hunspell binding for NodeJS that exposes as much of Hunspell as possible and also adds new features. Hunspell is a first class spellcheck library used by Google, Apple, and Mozilla.
Stars: ✭ 229 (+1247.06%)
Mutual labels:  wrapper
libpassqlite
libPasSQLite is delphi and object pascal bindings and wrapper around SQLite library. SQLite is library that implements a small, fast, self-contained, high-reliability, full-featured, SQL database engine.
Stars: ✭ 18 (+5.88%)
Mutual labels:  wrapper
Api struct
API wrapper builder with response serialization
Stars: ✭ 224 (+1217.65%)
Mutual labels:  wrapper
Bus
Bus 是一个基础框架、服务套件,它基于Java8编写,参考、借鉴了大量已有框架、组件的设计,可以作为后端服务的开发基础中间件。代码简洁,架构清晰,非常适合学习使用。
Stars: ✭ 253 (+1388.24%)
Mutual labels:  wrapper
pgspeck
Small block size Speck encryption in PostgreSQL
Stars: ✭ 16 (-5.88%)
Mutual labels:  encrypt
Echarts Php
Echarts-PHP a PHP library that works as a wrapper for the Echarts js library
Stars: ✭ 253 (+1388.24%)
Mutual labels:  wrapper

vue-cryptojs

A small wrapper for integrating crypto-js into Vue3 and Vue2

How to install:

npm install vue-cryptojs

And in your entry file:

// Vue3
import { createApp } from 'vue'
import VueCryptojs from 'vue-cryptojs'

createApp(...).use(VueCryptojs).mount(...)

// Vue2
import Vue from 'vue'
import VueCryptojs from 'vue-cryptojs'

Vue.use(VueCryptojs)

Usage:

This wrapper bind CryptoJS to Vue or this if you're using single file component.

Simple AES text encrypt/decrypt example:

const encryptedText = this.$CryptoJS.AES.encrypt("Hi There!", "Secret Passphrase").toString()
const decryptedText = this.$CryptoJS.AES.decrypt(encryptedText, "Secret Passphrase").toString(this.$CryptoJS.enc.Utf8)

Directly on a template:

<template>
  <img alt="Vue logo" src="./assets/logo.png" />
  <HelloWorld msg="Hello Vue 3 + Vite" />
  {{ $CryptoJS.AES.encrypt("Hi There!", "Secret Passphrase").toString() }}
</template>

For Vue3 we suggest to use inject on Composition API:

<script>
import { inject } from 'vue'

export default {
  setup() {
    const cryoptojs = inject('cryptojs')

    return {
      cryoptojs
    }
  }
}
</script>

Please kindly check full documention of crypto-js

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].