六十四卦编码,python实现。
Project description
六十四卦编码
六十四卦编码,python实现。 如:“hello,世界”会编码为“䷯䷬䷿䷶䷸䷬䷀䷌䷌䷎䷼䷲䷰䷳䷸䷘䷔䷭䷒〇”。
all language
install
pip install pygua64
example
from pygua64 import gua64
r = gua64.encode('hello,世界'.encode())
print(r.decode())
r = gua64.decode('䷯䷬䷿䷶䷸䷬䷀䷌䷌䷎䷼䷲䷰䷳䷸䷘䷔䷭䷒〇'.encode())
print(r.decode())
r = verify('䷯䷬䷿䷶䷸䷬䷀䷌䷌䷎䷼䷲䷰䷳䷸䷘䷔䷭䷒〇')
print(r)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pygua64-0.0.2.tar.gz
(3.1 kB
view hashes)