Abstract
As a large amount of users are now using the short message service (SMS) for communication, the demand for security is growing much stronger than ever before. User notification encrypted with traditional encrypt mechanism can be transported via SMS only if the encrypted message is encoded into text form. There are still many defects on existing data encoding mechanism in terms of efficiency. This paper provides a lightweight encoding mechanism for encrypted short message based on the UCS-2 Chinese character set which has a lower data extension rate than commonly used encoding mechanisms. Analysis of functionality and efficiency proves the new mechanism improves the performance for user notification transmission via SMS on mobile devices in power grid systems.
Introduction
In critical infrastructure like power grids, sending secure, encrypted notifications to mobile devices is essential. However, the Short Message Service (SMS) is a constrained medium, limited to 140 bytes (1120 bits) per message. Because encrypted data is essentially a stream of random binary bits, it cannot be sent directly as text; it must be encoded into a format the SMS protocol understands.
Common encoding schemes like Base64 or Base16 (Hexadecimal) introduce significant overhead. Base64 expands data by 33%, while Base16 doubles its size. In the tiny 140-byte window of an SMS, this overhead often forces a single encrypted notification to be split across multiple messages, increasing latency and cost. This paper introduces a lightweight encoding mechanism that leverages the UCS-2 Chinese character set to achieve an encoding efficiency of 87.5%, significantly outperforming standard methods.
Proposed Encoding Mechanism
The core innovation lies in mapping 14 bits of encrypted data into a single 16-bit Unicode character within the UCS-2 (Universal Coded Character Set 2-byte) range used by mobile networks.
Bit Mapping Scheme
Instead of the 6-bit chunks used by Base64, the proposed method divides the encrypted bitstream into 14-bit blocks. To transform a 14-bit block into a valid 16-bit UCS-2 character, the system follows a specific mapping process:
- Padding: Two "0" bits are added at the beginning to create a 16-bit structure.
- Offsetting: An offset of
0x4Eis added to the higher byte. This ensures the resulting value falls within the valid range for Chinese characters (0x4E00 to 0x9E7F).
Encoding Wheels
To manage the data stream efficiently, blocks are grouped into "encoding wheels." A full encoding wheel consists of 8 continuous 14-bit blocks. For data that does not perfectly fit into 8-block increments, "non-full" encoding wheels are used. In these cases, the last block contains the remaining bits, which are padded with zeros to maintain the 16-bit character structure required for UCS-2 compliance.
Evaluation and Results
The performance of the proposed UCS-2 encoding was validated through theoretical analysis and comparison against standard benchmarks like Base16 and Base64.
- Encoding Efficiency: The proposed method reaches an efficiency of 87.5% (14/16 bits). In contrast, Base16 efficiency is 50% and Base64 is approximately 75%.
- Payload Capacity: Within the 140-byte limit of a single SMS:
- Base16 carries 512 bits of ciphertext.
- Base64 carries 768 bits of ciphertext.
- Proposed UCS-2 carries 896 bits of ciphertext.
- Computational Simplicity: The encoding and decoding processes involve simple bit shifting and basic arithmetic, making them ideal for resource-constrained mobile devices and sensors in power grid systems.
Conclusion
By exploiting the specific structure of UCS-2 encoding in mobile networks, the proposed mechanism minimizes data expansion for encrypted SMS notifications. While it requires support for Chinese character sets and produces messages that appear as random characters to human readers, its efficiency gains are substantial for automated notification systems. Future work could involve integrating this mechanism with specific encryption standards like AES-128 for end-to-end security in power grid management.
Summary updated