First implementation of password and salt generation

I usually don't put empty line when return is alone in if, not sure if right.