Awesome
六十四卦编码
六十四卦编码,java实现。 如:“hello,世界”会编码为“䷯䷬䷿䷶䷸䷬䷀䷌䷌䷎䷼䷲䷰䷳䷸䷘䷔䷭䷒〇”。
all language
install
-
maven
<!-- https://mvnrepository.com/artifact/io.github.lizongying/gua64 --> <dependency> <groupId>io.github.lizongying</groupId> <artifactId>gua64</artifactId> <version>1.4.5</version> </dependency>
-
gradle
// https://mvnrepository.com/artifact/io.github.lizongying/gua64 implementation("io.github.lizongying:gua64:1.4.4")
example
public class Test {
public void main(String[] args) {
Gua gua = new Gua();
String encode = gua.encode("hello,世界");
System.out.println(encode);
String decode = gua.decode("䷯䷬䷿䷶䷸䷬䷀䷌䷌䷎䷼䷲䷰䷳䷸䷘䷔䷭䷒〇");
System.out.println(decode);
Boolean verify = gua.verify("䷯䷬䷿䷶䷸䷬䷀䷌䷌䷎䷼䷲䷰䷳䷸䷘䷔䷭䷒〇");
System.out.println(verify);
}
}