Change password of user through code

I want to create New user with specified Password. Or want to change password of user through code. It it possible.  Thanks in advance

  Discussion posts and replies are publicly visible