Example of symmetric encryption implementation