    id = db.Column(db.Integer, primary_key=True)
    service = db.Column(db.String(50), index=True)
    username = db.Column(db.String(50), index=True)
    email = db.Column(db.String(50))
    password_enc = db.Column(db.String())

    def __init__(self, service, username, email, password, key):
        self.service = service
        self.username = username
        self.email = email
        self.password_enc = self.encrypt(password, key)

    def encrypt(self, password, key):
        aes = AES.new(key, AES.MODE_ECB)
        padded = appendPadding(password)