Allow salt to be an object with valueOf() -> string.