Skip to content

Instantly share code, notes, and snippets.

brandonsueur

Block or report user

Report or block brandonsueur

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
@brandonsueur
brandonsueur / bcrypt-promise.js
Created Aug 24, 2018 — forked from dmh2000/bcrypt-promise.js
Using bcrypt with promises to hash a password and then verify it
View bcrypt-promise.js
let bcrypt = require('bcrypt-nodejs');
let password = "hello";
let stored_hash = "";
// first generate a random salt
function genSalt(password) {
return new Promise((resolve,reject) => {
bcrypt.genSalt(10,function(err,salt) {
if (err) {
@brandonsueur
brandonsueur / Projects.js
Last active May 23, 2018 — forked from bloodyowl/.js
💼 Small code for list my projects ~ Portfolio
View Projects.js
import React from "react";
import ReactDOM from "react-dom";
const Title = ({ children }) => <h1 className="Title">{children}</h1>
const Section = ({ title, children }) => (
<div className="Section">
<Title>{title}</Title>
{children}
</div>
You can’t perform that action at this time.