1.0.0 • Published 4 years ago

criptoselu v1.0.0

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
4 years ago

Criptoselu

Asymmetric encryption module

Description

This module encrypts / decrypts based on the name of the machine and the user, allowing independent encryption per user on the same computer.

Getting started

Install

npm install https://gitlab.com/necrokaneda/criptoselu.git --save

In code:

const ModCript = require('Criptselu');

const cript = new ModCript();

If you change algorithm or length:

const ModCript = require('Criptselu');

const cript = new ModCript({algorithm: 'aes128', length: 32});

Remember :

AlgorithmKeyiv
aes12816 byte (128 bits)16 byte (128 bits)
aes-128-cbc16 byte (128 bits)16 byte (128 bits)
aes19224 byte (192 bits)16 byte (128 bits)
aes25632 byte (256 bits)16 byte (128 bits)

Use

MethodDescriptionExample
encryptEncrypt wordcript.encrypt("Word")
decryptDecrypt wordcript.decrypt("Word")

Author

Jose Luís Entrena Dorado - (joseluisentrena@informaticos.com)

1.0.0

4 years ago