The Lightweight Encryption Algorithm (also known as LEA) is a 128-bit block cipher developed by South Korea in 2013 to provide confidentiality in high-speed environments such as big data and cloud computing, as well as lightweight environments such as IoT devices and mobile devices.
LEA is one of the cryptographic algorithms approved by the Korean Cryptographic Module Validation Program (KCMVP) and is the national standard of Republic of Korea (KS X 3246). LEA is included in the ISO/IEC 29192-2:2019 standard (Information security - Lightweight cryptography - Part 2: Block ciphers).
Command-line Lightweight Encryption Algorithm Utility
Usage of leacrypt: leacrypt [-d] [-b N] -p "pass" [-i N] [-s "salt"] -f <file.ext> -a string Additional data. -b int Key length: 128, 192 or 256. (default 256) -d Decrypt instead Encrypt. -f string Target file. ('-' for STDIN) -i int Iterations. (for PBKDF2) (default 1024) -k string Symmetric key to Encrypt/Decrypt. -m Cipher-based message authentication code. -p string Password-based key derivation function 2. -r Generate random cryptographic key. -s string Salt. (for PBKDF2)
Example of encryption/decryption:
./leacrypt -k "" -f plaintext.ext > ciphertext.ext ./leacrypt -d -k $256bitkey -f ciphertext.ext > plaintext.ext
This project is licensed under the ISC License.Industrial-Grade Reliability. Copyright (c) 2020-2021 ALBANESE Research Lab.