update basic and advanced encryption functions

- basic encryption using privateKey and IV
- advanced encryption using in additional a salt parameter
- new function to generate a random salt parameter