function to get user salt for use in event mcrypt