New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

laravel-encryption

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

laravel-encryption

The Illuminate Encryption component from Laravel pure js implementation.

latest
Source
npmnpm
Version
1.1.3
Version published
Maintainers
1
Created
Source

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.

Keywords

laravel

FAQs

Package last updated on 19 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts