Skip to content

Instantly share code, notes, and snippets.

View OmegaMaxy's full-sized avatar
💻
Becoming a coding legend..

Dazzy OmegaMaxy

💻
Becoming a coding legend..
View GitHub Profile
@OmegaMaxy
OmegaMaxy / scrypt.ts
Created October 21, 2023 19:38 — forked from tanishqmanuja/scrypt.ts
Typescript scrypt password hashing
import { randomBytes, scrypt, timingSafeEqual } from "crypto";
/*
#Wikipedia:
Scrypt: https://en.wikipedia.org/wiki/Scrypt
PBKDF2: https://en.wikipedia.org/wiki/PBKDF2
*/
const SALT_LENGTH_BYTES = 32;
const HASH_LENGTH_BYTES = 64;
@OmegaMaxy
OmegaMaxy / nitty.js
Created September 23, 2020 12:16 — forked from ThzeTerminator/nitty.js
Nitty.js | turn Alerts from UIKit into notifications.
try{
$(document).ready(function() {
$('<div id="NittyContainer" class=""></div>').prependTo("body");
$("#NittyContainer").css({
"top": 0,
"left": 0,
"position": "fixed",
"width": "100%",
"height": "100%",
"z-index": "1000",