from common.passwordUtils import PasswordEncrypt


class TokenUtils(object):

    def __init__(self, username, userpwd, verifyCodeId):
        self.username = username  # 用户名
        self.userpwd = userpwd  # 密码
        self.verifyCodeId = verifyCodeId  # 验证码id


    def get_PasswordEncrypt(self):
        #获取加密后的密码
        return PasswordEncrypt(self.username,self.userpwd,bytes(self.verifyCodeId.encode())).pwd_Encrypt()