All Projects → fabioricali → Cryptor

fabioricali / Cryptor

Licence: other
Encrypt and decrypt string using a key

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Cryptor

ciphr
CLI crypto swiss-army knife for performing and composing encoding, decoding, encryption, decryption, hashing, and other various cryptographic operations on streams of data from the command line; mostly intended for ad hoc, infosec-related uses.
Stars: ✭ 100 (+614.29%)
Mutual labels:  decryption
doctrine-extensions
Doctrine2 behavioral extension Transformable
Stars: ✭ 14 (+0%)
Mutual labels:  decryption
Hemmelig.app
Keep your sensitive information out of chat logs, emails, and more with encrypted secrets.
Stars: ✭ 183 (+1207.14%)
Mutual labels:  decryption
strong-cryptor
Strong encryption and decryption node js
Stars: ✭ 18 (+28.57%)
Mutual labels:  decryption
TrezorSymmetricFileEncryption
🔒 Use your Trezor device to symmetrically encrypt and decrypt files
Stars: ✭ 16 (+14.29%)
Mutual labels:  decryption
synology-decrypt
An open source implementation/description of the Synology Cloud Sync encryption/decryption algorithm
Stars: ✭ 91 (+550%)
Mutual labels:  decryption
Openssl
TLS/SSL and crypto library
Stars: ✭ 17,157 (+122450%)
Mutual labels:  decryption
WebCrypto.swift
A small collection of cryptographic functions based on the JavaScript WebCrypto API.
Stars: ✭ 16 (+14.29%)
Mutual labels:  decryption
cryptopocket
🔐 Encrypt anything, then Decrypt by providing a required key.
Stars: ✭ 22 (+57.14%)
Mutual labels:  decryption
dlink-decrypt
D-Link firmware decryption PoC
Stars: ✭ 107 (+664.29%)
Mutual labels:  decryption
client-encryption-nodejs
Library for Mastercard API compliant payload encryption/decryption.
Stars: ✭ 20 (+42.86%)
Mutual labels:  decryption
php jwsign
This is a function wrapping through the Openssl to sign and validate the data, which ensures the integrity and security of the original data.
Stars: ✭ 33 (+135.71%)
Mutual labels:  decryption
Password-Store
Saves your password with cryptography so only you can decode it.
Stars: ✭ 15 (+7.14%)
Mutual labels:  decryption
kmstool
Tool for using AWS Kms data keys to encrypt and decrypt large files.
Stars: ✭ 33 (+135.71%)
Mutual labels:  decryption
STIA
No description or website provided.
Stars: ✭ 18 (+28.57%)
Mutual labels:  decryption
secretpy
Classical ciphers: Caesar, ADFGX, ROT13 and etc.
Stars: ✭ 40 (+185.71%)
Mutual labels:  ciphers
crypto
🔐 Fastest crypto library for Deno written in pure Typescript. AES, Blowfish, CAST5, DES, 3DES, HMAC, HKDF, PBKDF2
Stars: ✭ 40 (+185.71%)
Mutual labels:  ciphers
simple-ransomware
Simple ransomware to troll your friends. Encrypt and Decrypt a Windows computer using a simple xor encryption which is pretty basic!
Stars: ✭ 29 (+107.14%)
Mutual labels:  decryption
cryptocli
The ultimate tool for data transfer, manipulation and proxy.
Stars: ✭ 16 (+14.29%)
Mutual labels:  decryption
Keep-It-Secure-File-Encryption
Keep It Secure Private Data Encryption & Decryption Tool
Stars: ✭ 38 (+171.43%)
Mutual labels:  decryption

Cryptorjs

Simple library for encryption and decryption of string, number and object using a key

Installation

npm install cryptorjs --save

Example

Basic

var cryptorjs = require('cryptorjs');

var myCryptor = new cryptorjs('yourSecretKey');

var encoded = myCryptor.encode('myExampleString');
// => '37d8e07a3dddc2971f3e53b1021f51'

var decoded = myCryptor.decode('37d8e07a3dddc2971f3e53b1021f51');
// => 'myExampleString'

Object encryption

var cryptorjs = require('cryptorjs');

var myCryptor = new cryptorjs('yourSecretKey');

var encoded = myCryptor.encode({ a: 1, b: 2 });
// => '2183c42066819ed9184f1df116'

var decoded = myCryptor.decode('2183c42066819ed9184f1df116');
// => { a: 1, b: 2 }

With a cipher

For example using "camellia-256-cfb1" cipher

var cryptorjs = require('cryptorjs');

var myCryptor = new cryptorjs('yourSecretKey', 'camellia-256-cfb1');

var encoded = myCryptor.encode('myExampleString');
// => 'ac3277ba5c3f433d6b7ea70979fe55'

var decoded = myCryptor.decode('ac3277ba5c3f433d6b7ea70979fe55');
// => 'myExampleString'

Ciphers

You can get the list with a static method

var cryptorjs = require('cryptorjs');

cryptorjs.getCiphers();

/*=> [ 'aes-128-cbc',
        'aes-128-cbc-hmac-sha1',
        'aes-128-cbc-hmac-sha256',
        'aes-128-ccm',
        'aes-128-cfb',
        'aes-128-cfb1',
        'aes-128-cfb8',...]
        */

Hash helpers

Create an hash using available hashes in your platform

var cryptorjs = require('cryptorjs');

// Check if exists MD5 hash
console.log(cryptorjs.hasHash('md5')); //=> true

cryptorjs.hash('ciao', 'md5');

/*=> '6e6bc4e49dd477ebc98ef4046c067b5f'*/

cryptorjs.hash('ciao', 'sha1');

/*=> '1e4e888ac66f8dd41e00c5a7ac36a32a9950d271'*/

Supported ciphers (since 3.0.0)

  • aes-256-cbc
  • aes-256-cbc-hmac-sha1
  • aes-256-cbc-hmac-sha256
  • aes-256-cfb
  • aes-256-cfb1
  • aes-256-cfb8
  • aes-256-ctr
  • aes-256-ofb
  • aes256
  • camellia-256-cbc
  • camellia-256-cfb
  • camellia-256-cfb1
  • camellia-256-cfb8
  • camellia-256-ofb
  • camellia256

License

Cryptorjs is open-sourced software licensed under the MIT license

Author

Fabio Ricali

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].