Hawkynt

PES (DarkCrypt)

PES (Proposed Encryption Standard, Lai/Massey 1990), the direct historical predecessor of IDEA, as implemented in the DarkCrypt Total Commander plugin. Same Lai-Massey structure and multiplication-mod-65537 arithmetic as IDEA over four 16-bit sub-blocks, but with a simpler bit-rotating round-key derivation lacking IDEA’s stronger key mixing. 8 full rounds plus a final half-round.

Properties

Property Value
Category Block Ciphers
Sub-category Block Cipher
Security status πŸŽ“ Educational Only
Complexity Intermediate
Inventor Xuejia Lai, James L. Massey
Year 1990
Origin πŸ‡¨πŸ‡­ Switzerland
Source algorithms/block/darkcrypt-pes.js

Parameters

Parameter Supported values
Key sizes 16 bytes (128 bits)
Block sizes 8 bytes (64 bits)

Security

Status: πŸŽ“ Educational Only

Known vulnerabilities

Issue Description Mitigation
Weak key schedule PES’s simpler round-key derivation (relative to its IDEA successor) was shown to be cryptanalytically weak, which is precisely why IDEA replaced it. Use IDEA, AES, or another vetted cipher.

Documentation

Test vectors

2 vectors ship with this algorithm and run in the test suite. Byte values are hexadecimal.

Vector 1 β€” DarkCrypt Pes β€” incrementing key, zero plaintext

Field Value
key 000102030405060708090a0b0c0d0e0f
input 0000000000000000
expected e8f608b37a36627a

Vector 2 β€” DarkCrypt Pes β€” incrementing key, incrementing plaintext

Field Value
key 000102030405060708090a0b0c0d0e0f
input 0001020304050607
expected 722ddbe59d2ad932

← All algorithms