EncryptPassword() public method

public EncryptPassword ( string text ) : string
text string
return string
        public void ChangeUserPassword(long userId, String newPassword)
        {
            UserAccount userAccount = UserInformationService.GetUserAccountById(userId);

            userAccount.Password = AuthorizationService.EncryptPassword(newPassword);
            AccountAdministrationDao.SaveOrUpdateUser(userAccount);
        }
        public void ChangePassword(long userAccountId, string oldPassword, string newPassword)
        {
            UserAccount userAccount = UserInformationService.GetUserAccountById(userAccountId);

            if (userAccount.Password != AuthorizationService.EncryptPassword(oldPassword))
            {
                //PASSWORD DOES NOT MATCH
            }
            else
            {
                userAccount.Password = AuthorizationService.EncryptPassword(newPassword);
                AccountAdministrationService.SaveOrUpdateUser(userAccount);
            }
        }