Moved encryption methods to static class