“djh”
2024-12-05 eee41a5fb58e6547a43929430f4b72908119db6e
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
32
33
34
package com.gkhy.testFourierSpecialGasMonitor.config.license;
 
import java.nio.charset.StandardCharsets;
import java.util.Base64;
 
public class LicenseDataCon {
 
    private String p;
 
    private String i;
 
    private String pubk;
 
    private LicenseDataCon(){
        this.p = "ag3hs8jqodi1hs8g";
        this.i = "8uhsgt16tsd623hd";
        this.pubk = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwyJHfDUlEIhnATeh7nHH7Xa6gXLIahAoTsQ+/DchZXxVutptzYCVebPJDg8PX+iQvjtO4F1Lmu3OKQVFv5yOA5QAShlP163a0yGg50zNGhPesnODIhEOmEHqCTQZctEGK0x51+mxIhS0xIkCOYUpTleT8KfVS8Ab9+hDhcxQkrwIDAQAB";
    }
 
    public static LicenseDataCon getCon(){
        return new LicenseDataCon();
    }
 
    public String getPi() {
        if(p == null || i == null || p.isEmpty() || i.isEmpty())
            return null;
        String r = p+"#"+i;
        return new String(Base64.getEncoder().encodeToString(r.getBytes(StandardCharsets.UTF_8)));
    }
 
    public String getPublicKey(){
        return this.pubk;
    }
}