Fixed opened issues + Finished encryption

Code refactoring: created the Utils class to minimize code redundancy by
the redefinition of write and read to file functions.