arrow
Return

Huffman Tree and Binary Conversion for Efficient and Secure Data Encryption and Decryption

delete2025-12-22
delete0
delete
OA
AI
S
Suchart Khummanee
T
T. Cheawchanwattana
C
Chanwit Suwannapong
S
Sarutte Atsawaraungsuk
K
Kritsanapong Somsuk *
DOI:10.3390/jcp6010001delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
This study proposes the Huffman Tree and Binary Conversion (HTB) which is a preprocessing algorithm to transform the Huffman tree into binary representation before the encryption process. In fact, HTB can improve the structural readiness of plaintext by combining the Huffman code with a deterministic binary representation of the Huffman tree. In addition, binary representation of the Huffman tree and the compressed information will be encrypted by standard cryptographic algorithms. Six datasets, divided into two groups (short and long texts), were chosen to evaluate compression behavior and the processing cost. Moreover, AES and RSA are chosen to combine with the proposed method to analyze the encryption and decryption cycles. The experimental results show that HTB introduces a small linear-time overhead. That means, it is slightly slower than applying only the Huffman code. Across these datasets, HTB maintained a consistently low processing cost. The processing time is below one millisecond in both encoding and decoding processes. However, for long texts, the structural conversion cost becomes amortized across larger encoded messages, and the reduction in plaintext size leads to fewer encryption blocks for both AES and RSA. The reduced plaintext size lowers the number of AES encryption blocks by approximately 30-45% and decreases the number of encryption and decryption rounds in RSA. The encrypted binary representation of the Huffman tree also decreased structural ambiguity and reduced the potential exposure of frequency-related metadata. Although HTB does not replace cryptographic security, it enhances the structural consistency of compression. Therefore, the proposed method demonstrates scalability, predictable overhead, and improved suitability for cryptographic workflows.
Keywords:
Huffman coding
RSA
AES-256
HTB

Journal

J
Journal of Cybersecurity and Privacy
IF:
0
Papers:
134
Citations:
0

Organization

M
mahasarakham university
Scholars:
252
Papers: 105
Citations: 0
U
udon thani rajabhat university
Scholars:
121
Papers: 109
Citations: 5
N
nakhon phanom university
Scholars:
14
Papers: 11
Citations: 0
researcher View more organizations
Cited Papers

Cited Papers

HEliOS
err2020-02-03
err0
PREAI
errMazharul Islam; Novia Nurain; Mohammad Kaykobad; Sriram Chellappan; A. B. M. Alim Al Islam
errShare
errSave
Image encryption method based on improved ECC and modified AES algorithm
err2021-03-02
err41
PREAI
errHafsa, Amal; Sghaier, Anissa; Malek, Jihene; Machhout, Mohsen
errShare
errSave
errShare
errSave
Instantiability of RSA-OAEP Under Chosen-Plaintext Attack
err2016-09-19
err0
PREAI
errEike Kiltz; Adam O’Neill; Adam Smith
errShare
errSave
Does Deflate Outperform Huffman Lossless Compression?
err2023-11-07
err0
PREAI
errSutomo,Vincent Dava; Cenon,Neo; Kang,Aloysius; Bandjar,I Dewa Agung Kayana Abhipraya Putra; Kurniadi,Felix Indra; Riccosan,
errShare
errSave
A proposed mode for triple-DES encryption
err1996-03-01
err0
PREAI
errD. Coppersmith; D. B. Johnson; S. M. Matyas
errShare
errSave
researcher View more