Hawkynt

SHA1-512 (DarkCrypt)

SHA-1 compression function used as a raw keyed block cipher (SHACAL-style), as implemented in the DarkCrypt Total Commander plugin. 160-bit block, 512-bit key.

Properties

Property Value
Category Block Ciphers
Sub-category Block Cipher
Security status 🎓 Educational Only
Complexity Intermediate
Inventor Alexander Myasnikov (DarkCrypt plugin)
Year 2013
Origin 🇷🇺 Russia
Source algorithms/block/darkcrypt-sha1.js

Parameters

Parameter Supported values
Key sizes 64 bytes (512 bits)
Block sizes 20 bytes (160 bits)

Security

Status: 🎓 Educational Only

No vulnerabilities are recorded for this implementation.

Documentation

Test vectors

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

Vector 1 — DarkCrypt SHA1-512 - all-zero key and plaintext

Field Value
key 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000 00000000000000000000000000000000
input 0000000000000000000000000000000000000000
expected ed47159ec291ec57c88bfa30545a78c7e3a5efa7

Vector 2 — DarkCrypt SHA1-512 - incrementing key and plaintext

Field Value
key 000102030405060708090a0b0c0d0e0f 101112131415161718191a1b1c1d1e1f 202122232425262728292a2b2c2d2e2f 303132333435363738393a3b3c3d3e3f
input 000102030405060708090a0b0c0d0e0f10111213
expected 19b4b40fc6da2c67682e1726758b65d8e52228d1

Vector 3 — DarkCrypt SHA1-512 - shifted incrementing key and plaintext

Field Value
key 0102030405060708090a0b0c0d0e0f10 1112131415161718191a1b1c1d1e1f20 2122232425262728292a2b2c2d2e2f30 3132333435363738393a3b3c3d3e3f40
input 101112131415161718191a1b1c1d1e1f20212223
expected 9c043cc531aba3373fd2eaea45bed8b1b47625af

← All algorithms