自动化立体仓库 - WMS系统
1
ZY
21 小时以前 1b5c0044b4178c7314781ac36f897b781de72064
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package com.zy.nc.util;
 
import sun.misc.BASE64Decoder;
import sun.misc.BASE64Encoder;
 
import java.io.IOException;
 
/**
 * Base64������
 *
 * @author liyang
 */
public class Base64Util {
 
    /**
     * Base64����
     */
    public static String encryptBASE64(byte[] key) {
        return (new BASE64Encoder()).encodeBuffer(key);
    }
 
    /**
     * Base64����
     *
     * @throws IOException
     */
    public static byte[] decryptBASE64(String key) throws IOException {
        return (new BASE64Decoder()).decodeBuffer(key);
    }
 
}