So it seems, if I use OpenJDK source, the whole library will be be GPL v2. It is better to modify the https://commons.apache.org/proper/commons-codec/apidocs/org/apache/commons/codec/binary/Base64.html Apache Commons Codec version.