Added sample crypto function (global salting)