I would like to know the algorithm or technique used by this command (mvn --encrypt-master-password ). Each time I run it produces a different output. I'm assuming that it takes system time as a seed parameter.
相关问题
- Include pom.xml in Jar with gradle
- What order does maven find its dependencies?
- proguard causing EnumMap NPE on dynamically declar
- Maven: How to read the Parent POM version
- enableHiveSupport throws error in java spark code
相关文章
- IDEA2020 安装maven 插件后,springboot程序 SpringBootApplic
- pom文件中的插件定义
- pom.xml中的project为何报红
- Hibernate Tutorial - Where to put Mapping File?
- Cannot use org.jvnet.jax-ws-commons.jaxws-maven-pl
- New Maven install: mvn -version java.lang.ClassNot
- What's the difference between archetype.xml an
- NoNodeAvailableException[None of the configured no
The encryption mechanism is not in the maven codebase per se. It is located on a library called
plexus-cipher
. It is always on the maven distribution. Mine is onlib/plexus-cipher-1.7.jar
being3.0.5
the maven version.The actual cipher is
AES/CBC/PKCS5Padding
. The key for the cipher and IV for the block chaining are derived iteratingSHA-256
-ing over the provided password (encoded as UTF-8) concatenated with a JVM-configuration-specific (usuallySHA1PRNG
) 64-bit random salt once or twice.No big surprises here. It seems to be on the same format every other soul is using nowadays.
The gory details can be found reading the source on the GitHub project page