Plan:
Use the api and replace Clazz.class.getResourceAsStream(name) with ResourceEncryption.getResourceAsStream(clazz, name). The api class should be shadded. The ResourceEncryption#getResourceAsStream will have the decryption logic inserted with the transformer where as the api class will just return clazz.class.getResourceAsStream(name). All calls to ResourceEncryption#getResourceAsStream will have a small decryption logic inserted as well.
Plan:
Use the api and replace Clazz.class.getResourceAsStream(name) with ResourceEncryption.getResourceAsStream(clazz, name). The api class should be shadded. The ResourceEncryption#getResourceAsStream will have the decryption logic inserted with the transformer where as the api class will just return clazz.class.getResourceAsStream(name). All calls to ResourceEncryption#getResourceAsStream will have a small decryption logic inserted as well.