| | |
| | | import javax.crypto.SecretKeyFactory; |
| | | import javax.crypto.spec.IvParameterSpec; |
| | | import javax.crypto.spec.SecretKeySpec; |
| | | import java.nio.charset.StandardCharsets; |
| | | import java.security.NoSuchAlgorithmException; |
| | | import java.security.SecureRandom; |
| | | import java.security.spec.InvalidKeySpecException; |
| | |
| | | |
| | | |
| | | public static void main(String[] ages){ |
| | | // String encrypt = AESUtil.encrypt("19167181339"); |
| | | // String encrypt = AESUtil.encrypt("18398968484"); |
| | | // System.err.println(encrypt); |
| | | String encrypt = AESUtil.encrypt("VM0S5boDnJqBFZUxn4X6Vw=="); |
| | | System.err.println(encrypt); |
| | | // String travel = AESUtil.decrypt("wRhQ5gEAAAEQAAAAAAAAAA=="); |
| | | // System.err.println(travel); |
| | | // String encrypt = AESUtil.encrypt("7tQOnSXCstqyFQRvSSMdwQ=="); |
| | | // System.err.println(encrypt); |
| | | String travel = AESUtil.decrypt("7tQOnSXCstqyFQRvSSMdwQ=="); |
| | | System.err.println(travel); |
| | | } |
| | | } |