Encryption/Decription file text with Abstract Factory Pattern