First implementation of password and salt generation