First implementation of password and salt generation

@PedroTroller maybe php: >=5.4 ?