Just some code I use in my node project to hash and check passwords