1.引入依赖

    1. <dependency>
    2. <groupId>com.xy</groupId>
    3. <artifactId>xy-core-utils-encryption</artifactId>
    4. <version>${xy-core-utils-encryption-version}</version>
    5. </dependency>

    2.方法使用

    md5

    rsa