Skip to content

Instantly share code, notes, and snippets.

View masad-frost's full-sized avatar
😃
I may be slow to respond.

Faris Masad masad-frost

😃
I may be slow to respond.
View GitHub Profile
import { bench, run } from 'mitata';
import { createCipheriv, createDecipheriv, randomBytes } from 'crypto';
const keyBuffer = randomBytes(32);
const ivBuffer = randomBytes(12);
const text = 'hello world';
const textBuffer = Buffer.from(text, 'utf8');
function encryptNative() {
const cipher = createCipheriv('aes-256-gcm', keyBuffer, ivBuffer);
My name is faris
@masad-frost
masad-frost / DqV3-0.py
Created October 6, 2016 23:08
null created by masfrost - https://repl.it/DqV3/0
tyulk;
class Main {
public static void main(String[] args) {
asdasd;
System.out.println("hello world");
}
}
//CSS props to JS
//incomplete
let css =
`
`;
css = css.replace(/;/g, ',');
@masad-frost
masad-frost / t-0.js
Created April 14, 2016 03:58
https://repl.it/t/0 created by masad-frost1
asdasdasdasd
@masad-frost
masad-frost / wppppp.js
Created April 12, 2016 21:43
https://repl.it/a/1 created by masad-frost1
asdasdsadasdasdasd