public class DESCoder extends Object
public static byte[] doFinal(int mode,
byte[] src,
byte[] key)
throws Exception
src - key - Exceptionpublic static final String encrypt(String password, String key)
password - 密码key - 加密字符串public static byte[] String2byte(byte[] b)
public static void main(String[] args)
Copyright © 2020. All rights reserved.