Digital salinity