https://github.com/pedroalbanese/leacrypt
TTAK.KO-12.0223 Lightweight Encryption Algorithm (ISO/IEC 29192-2:2019) with Galois/Counter Mode (LEA-GCM)
https://github.com/pedroalbanese/leacrypt
aead cryptography golang lea symmetric-encryption
Last synced: over 1 year ago
JSON representation
TTAK.KO-12.0223 Lightweight Encryption Algorithm (ISO/IEC 29192-2:2019) with Galois/Counter Mode (LEA-GCM)
- Host: GitHub
- URL: https://github.com/pedroalbanese/leacrypt
- Owner: pedroalbanese
- License: isc
- Created: 2021-11-27T15:34:44.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-16T17:26:00.000Z (over 3 years ago)
- Last Synced: 2025-01-04T21:18:54.641Z (over 1 year ago)
- Topics: aead, cryptography, golang, lea, symmetric-encryption
- Language: Go
- Homepage:
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# LEACrypt
[](https://github.com/pedroalbanese/leacrypt/blob/master/LICENSE.md)
[](http://godoc.org/github.com/pedroalbanese/leacrypt)
[](https://github.com/pedroalbanese/leacrypt/releases)
[](https://goreportcard.com/report/github.com/pedroalbanese/leacrypt)
[](https://golang.org)
[](https://github.com/pedroalbanese/leacrypt/releases)
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 Authenticated 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:
```sh
./leacrypt -k "" -f plaintext.ext > ciphertext.ext
./leacrypt -d -k $256bitkey -f ciphertext.ext > plaintext.ext
```
## License
This project is licensed under the ISC License.
##### Industrial-Grade Reliability. Copyright (c) 2020-2021 ALBANESE Research Lab.