Skip to content

Instantly share code, notes, and snippets.

View andrevandal's full-sized avatar
🇧🇷
BR Hu3

André Vandal andrevandal

🇧🇷
BR Hu3
View GitHub Profile
@veer66
veer66 / app.js
Last active May 31, 2016 09:29
Incomplete user authentication code using pbkdf2, node.js and Q
var express = require('express');
var app = express();
var nconf = require('nconf');
var Q = require("q");
var crypto = require('crypto');
app.use(express.bodyParser());
app.post("/user/auth", function(req, res) {
res.set('Content-Type', 'application/json');
authUser(req.body.username, req.body.password).then(function(auth_result) {
@jed
jed / LICENSE.txt
Created May 20, 2011 13:27 — forked from 140bytes/LICENSE.txt
generate random UUIDs
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE