Refactored 'Encryption' Class and Created 'API' Class