Skip to content

Instantly share code, notes, and snippets.

Puneet Thakur puneetthakur66

Block or report user

Report or block puneetthakur66

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@puneetthakur66
puneetthakur66 / encryption.js
Created Sep 11, 2018 — forked from Tiriel/encryption.js
Symetric encryption/decryption for PHP and NodeJS communication
View encryption.js
'use strict';
const crypto = require('crypto');
const AES_METHOD = 'aes-256-cbc';
const IV_LENGTH = 16; // For AES, this is always 16, checked with php
const password = 'lbwyBzfgzUIvXZFShJuikaWvLJhIVq36'; // Must be 256 bytes (32 characters)
function encrypt(text, password) {
You can’t perform that action at this time.