Skip to content

Instantly share code, notes, and snippets.

Aldrin Marquez metalsadman

Block or report user

Report or block metalsadman

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
metalsadman / encryption.js
Created Jun 4, 2019 — 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) {
metalsadman / Cryptor.php
Created Jun 4, 2019 — forked from Radiergummi/Cryptor.php
A PHP class to encrypt and decrypt strings using a static application secret. Input is converted to hex strings to enable easier handling
View Cryptor.php
namespace Vendor\Library;
use function bin2hex;
use function hex2bin;
use function openssl_decrypt;
use function openssl_encrypt;
You can’t perform that action at this time.