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-0.0.2.tar.gz (3.4 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-0.0.2-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for yinyang_base64-0.0.2.tar.gz
Algorithm Hash digest
SHA256 5a034dff1e666b74f7696f424256701921afaa5206bf9727416ceb5ccc8958c3
MD5 5dd6c4bf24106dfbdce98a40dfbae474
BLAKE2b-256 ee94a26186ddbed316c8bb27acae1d3784e6a30ea2ab812e4bf09e26614f7aff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yinyang_base64-0.0.2-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-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9ea901a683f6f4fa21de2e1900fe7479c53ebe485ac24aafac0a8f19d7dffc85
MD5 b53b95674df2b29a05037fc2de92c91d
BLAKE2b-256 5d7913f7efcb5121d640798af56d65e530f96c992145760434b7ea3f61a98a77

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