Place walnuts or almonds in a food processor fitted with a metal blade. Process until a paste forms. Add date syrup and salt until well mixed. Add cranberries and mix. The dough will be crumbly and moist but easy to mold into truffles about 1-1/2 inches diameter.