| | |
| | | * @param o2 second Object to compare |
| | | * @return whether the given objects are equal |
| | | * @see Object#equals(Object) |
| | | * @see java.util.Arrays#equals |
| | | * @see Arrays#equals |
| | | */ |
| | | public static boolean equalsSafe(@Nullable Object o1, @Nullable Object o2) { |
| | | return ObjectUtil.nullSafeEquals(o1, o2); |
| | |
| | | } |
| | | |
| | | /** |
| | | * AES 解密 |
| | | * @param decryptData |
| | | * @param secretKey |
| | | * @return |
| | | */ |
| | | public static String encryptAes(String decryptData, String secretKey) throws Exception { |
| | | return DigestUtil.encryptAes(decryptData, secretKey); |
| | | } |
| | | |
| | | /** |
| | | * hmacMd5 Hex |
| | | * |
| | | * @param bytes Data to digest |