Skip to content

Instantly share code, notes, and snippets.

asidpulse asidpulse

  • Monroe, LA
Block or report user

Report or block asidpulse

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
@asidpulse
asidpulse / index.html
Created Sep 19, 2018
Responsive Numeric Keypad
View index.html
<div class="keypadwrapper">
<div class="inputwrapper">
<span class="numberinput"></span>
<span class="numberinput"></span>
<span class="numberinput"></span>
<span class="numberinput"></span>
</div>
<div class="keypad">
<div id="lineone" class="numberline">
<div class="content">
@asidpulse
asidpulse / simple-nodejs-iv-encrypt-decrypt.js
Last active Jul 24, 2018 — forked from yoavniran/simple-nodejs-iv-encrypt-decrypt.js
nodejs crypto - simple encrypt & decrypt using IV (Initialization Vector)
View simple-nodejs-iv-encrypt-decrypt.js
"use strict";
var crypto = require("crypto");
var EncryptionHelper = (function () {
function getKeyAndIV(key, callback) {
crypto.pseudoRandomBytes(16, function (err, ivBuffer) {
var keyBuffer = (key instanceof Buffer) ? key : new Buffer(key) ;
@asidpulse
asidpulse / encrypt_decrypt_example.js
Last active Jul 23, 2018 — forked from erans/encrypt_decrypt_example.js
Example of encryption and decryption in node.js
View encrypt_decrypt_example.js
var crypto = require("crypto")
function encrypt(key, data) {
var cipher = crypto.createCipher('aes-256-cbc', key);
var crypted = cipher.update(data, 'utf-8', 'hex');
crypted += cipher.final('hex');
return crypted;
}
You can’t perform that action at this time.