getSalt method