code for custom encryption proccess