- Latest Versions
| Name | Version | Description |
|---|---|---|
| Cryptography | Crypto Keys | |
| Ming Ke Ming (名可名) | Decentralized User Identity Authentication | |
| Dao Ke Dao (道可道) | Universal Message Module | |
| DIMP (去中心化通讯协议) | Decentralized Instant Messaging Protocol |
- Data Coding
- Base-58
- Base-64
- Hex
- UTF-8
- JsON
- PNF (Portable Network File)
- TED (Transportable Encoded Data)
- Digest Digest
- SHA-256
- Keccak-256
- RipeMD-160
- Cryptography
- AES-256 (AES/CBC/PKCS7Padding)
- RSA-1024 (RSA/ECB/PKCS1Padding), (SHA256withRSA)
- ECC (Secp256k1)
import chat.dim.PluginLoader;
import chat.dim.format.Base64;
import chat.dim.format.DataCoder;
public class CommonPluginLoader extends PluginLoader {
@Override
public void registerBase64Coder() {
// Base64 coding
Base64.coder = new DataCoder() {
@Override
public String encode(byte[] data) {
return java.util.Base64.getEncoder().encodeToString(data);
}
@Override
public byte[] decode(String string) {
string = string.replace(" ", "");
string = string.replace("\t", "");
string = string.replace("\r", "");
string = string.replace("\n", "");
return java.util.Base64.getDecoder().decode(string);
}
};
}
}This library is primarily designed to implement various algorithms in a plug-in manner, allowing you to further develop additional algorithms tailored to your specific applications.