Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 463 Bytes

README.md

File metadata and controls

17 lines (13 loc) · 463 Bytes

encryptLaravel5

Duplicate the encryption/decryption of php Laravel v5.

Installation

    npm i encrypt-laravel-5 --save

Usage (Javascript)

    let encryptLaravel5 = require('encrypt-laravel-5');

    let encryptedValue = encryptLaravel5.encrypt('value1', '<your laravel5 api key here>');
    
    let decryptedValue = encryptLaravel5.decrypt(encryptedValue, '<your laravel5 api key here>');
    // decryptedValue === 'value1'