It is not safe anymore, because you have just published the algorithm to the world.
If you want a safe password, then select the characters at random, and store the results in a secure location.
If you want a safe password, then select the characters at random, and store the results in a secure location.