shouldnt salt be optional then ($salt = '')