replaced salt with $encdata. 

for info comment on this commit.