laravel-encryption

1.1.3 • Public • Published

laravel-encryption

The Illuminate Encryption component from Laravel pure js implementation. The Laravel Encryption is node library that helps you to encode/decode data in compatible with Laravel way.

Basic usage:

const encryption = require('laravel-encryption');
 
let encrypter = new encryption.Encrypter("your-secret-key-");
 
// or
let encrypter = new encryption.fromRawKey("base64:eW91ci1zZWNyZXQta2V5LQ==");
 
// or
let encrypter = new encryption.fromEnv();
 
let encrypted = encrypter.encrypt({"key": "value"});
let decrypted = encrypter.decrypt(encrypted);
 

The library tries to be as close to original as possible so you can refer to Laravel docs.

/laravel-encryption/

    Package Sidebar

    Install

    npm i laravel-encryption

    Weekly Downloads

    30

    Version

    1.1.3

    License

    MIT

    Unpacked Size

    26.9 kB

    Total Files

    12

    Last publish

    Collaborators

    • ilnicki