Overview
The Core Values Encoder / Decoder converts plain text to and from the phrase set built from the socialist core values. It is useful for playful text obfuscation, sharing, demos, and character-encoding exploration.
Key Features
- Encode any UTF-8 text into the core values phrase sequence.
- Decode core values phrase content back into the original text.
- Ignore spaces, line breaks, and common punctuation during decoding.
- Show a mapping table, live stats, and quick samples for easier verification.
- Keep all processing local in the browser without uploading input data.
How To Use
- Open the Encode tab, enter source text, and run the encoder.
- Open the Decode tab, paste the core values code, and run the decoder.
- Use the transfer actions to move results between the encoder and decoder.
- Use the copy buttons to save results or clear buttons to reset the form.
Encoding Rules
- The tool first converts source text into UTF-8 hexadecimal data.
- Hex digits 0-9 map directly to phrase indexes 0-9.
- Hex digits above 9 are represented through control-bit combinations and become two phrase groups.
- Decoding reads the phrase groups back into indexes, hexadecimal data, and finally UTF-8 text.
Mapping Table
- 0: 富强
- 1: 民主
- 2: 文明
- 3: 和谐
- 4: 自由
- 5: 平等
- 6: 公正
- 7: 法治
- 8: 爱国
- 9: 敬业
- 10: 诚信
- 11: 友善
Use Cases
- Playful text hiding and shareable phrase conversion.
- Frontend demos, encoding lessons, and algorithm exploration.
- Lightweight scenarios that need text transformed into a fixed Chinese phrase pattern.
Notes
- This scheme is for fun obfuscation and is not suitable for real security use.
- Invalid phrase input will trigger decoding errors instead of partial output.
- The restored result must be valid UTF-8 text to decode successfully.