Symmetric encryption system in C ++