def set_salt(self, salt):
    if (isinstance(salt, bytearray) or isinstance(salt, bytes)):
        self.salt = int.from_bytes(salt, 'big')
    else:
        self.salt = salt
def set_salt(self, salt):
    if (isinstance(salt, bytearray) or isinstance(salt, bytes)):
        self.salt = int.from_bytes(salt, 'big')
    else:
        self.salt = salt