Skip to main content

Base64 but Kanji (Yinyang) characters.

Project description

YinYang-Base64

Base64 but Kanji (Yinyang) characters.

Base64 (YinYang) uses the following characters:

陰陽天干地支五行金木水火土甲乙丙丁戊己庚辛壬癸子丑寅卯辰巳午未申酉戌亥立春驚蟄清明夏芒種小暑秋白露寒冬大雪雨分穀滿至處霜降生剋沖

Base64 (YinYang) padding characters:

宮
星宿

Base64 (RFC 4648) uses the following characters:

ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/

Base64 (RFC 4648) padding characters:

=
==

Python

Install:

pip install yinyang-base64

Usage:

import yinyang_base64

# Convert bytes to base64 string
utf8_bytes = "Hello World".encode("utf-8")
base64_str = yinyang_base64.get_str(utf8_bytes)
print(base64_str)

# Convert base64 string back to bytes
utf8_bytes = yinyang_base64.get_bytes(base64_str)
print(utf8_bytes)

YinYang (陰陽)

A dualistic concept describing how seemingly opposite forces are interconnected and interdependent.

Yīn/Yam1 (陰): Represents darkness, femininity, cold, passivity, and the moon.

Yáng/Yeung4 (陽): Represents light, masculinity, heat, activity, and the sun.

Everything in the universe contains both Yīn and Yáng, and they constantly interact to maintain balance.

天干 (Tin1 Gon1) – The Ten Heavenly Stems

A system of ten characters used in combination with the Earthly Branches to form the Sexagenary Cycle (60-year cycle).

The ten stems are: 甲(Gaap3), 乙(Yut3), 丙(Bing2), 丁(Ding1), 戊(Mou6), 己(Gei2), 庚(Gang1), 辛(San1), 壬(Yam4), 癸(Gwai3).

Each stem is associated with an element from the Five Elements (五行, Ng5 Hang4) and is either Yīn/Yam1(陰) or Yáng/Yeung4(陽).

地支 (Dei6 Ji1) – The Twelve Earthly Branches

A system of twelve characters used in the Chinese calendar, astrology, and zodiac system.

The twelve branches correspond to the Chinese zodiac animals:

子(Ji2) – Rat, 丑(Chau2) – Ox, 寅(Yan4) – Tiger, 卯(Maau5) – Rabbit, 辰(San4) – Dragon, 巳(Ji6) – Snake, 午(Ng5) – Horse, 未(Mei6) – Goat, 申(San1) – Monkey, 酉(Yau5) – Rooster, 戌(Seut1) – Dog, 亥(Hoi6) – Pig.

Each branch is also linked to an element from the Five Elements and has a Yīn or Yáng attribute.

五行 (Ng5 Hang4) – The Five Elements

A system that describes interactions between elements in nature, used in feng shui, traditional Chinese medicine, astrology, and martial arts.

The five elements are:

Metal (金, Gam1) – Strength, structure

Wood (木, Muk6) – Growth, vitality

Water (水, Seui2) – Flexibility, wisdom

Fire (火, Fo2) – Energy, transformation

Earth (土, Tou2) – Stability, nourishment

The elements interact in two main cycles:

Generating (生, Sang1) cycle: Wood => Fire => Earth => Metal => Water => Wood.

Overcoming (剋, Hak1) cycle: Wood <= Earth <= Water <= Fire <= Metal <= Wood.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yinyang_base64-1.0.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yinyang_base64-1.0.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file yinyang_base64-1.0.0.tar.gz.

File metadata

  • Download URL: yinyang_base64-1.0.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.3

File hashes

Hashes for yinyang_base64-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ee95e5576d9a50a5606f80d28762196518477db035c13cba391eae65079b6cbf
MD5 bccf6bb1e41dea7cbbbd2a9eba6ebc91
BLAKE2b-256 5b7f0a4a8bfd03e606fee49bf3f9c04c2000aa69e65470a763cc57e560e71511

See more details on using hashes here.

File details

Details for the file yinyang_base64-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: yinyang_base64-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.3

File hashes

Hashes for yinyang_base64-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 85dda4602ed4f9ac0165375b35097478b31399f1767bcac4fb40d6025138bfc0
MD5 f84a9556d7f5525e567f217434af000c
BLAKE2b-256 7a887c5bedb1e72a7e3949c3adf3477599a7a9cbf5b5f01e894f7aab34264fd9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page