Skip to content

Encryption Types

Seven Kerberos encryption types have been used in Active Directory. How each one derives its key determines what you're cracking and how fast.

flowchart LR
    P["Password"] --> DES_PATH & RC4_PATH & AES_PATH & SHA2_PATH

    subgraph DES_PATH["DES (etype 1, 3)"]
        direction TB
        D1["+ Salt: REALMusername"]
        D2["DES string-to-key"]
        D3["56-bit DES key"]
        D1 --> D2 --> D3
    end

    subgraph RC4_PATH["RC4 (etype 23)"]
        direction TB
        R1["UTF-16LE encode"]
        R2["MD4 hash"]
        R3["128-bit NT hash = key"]
        R1 --> R2 --> R3
    end

    subgraph AES_PATH["AES-SHA1 (etype 17, 18)"]
        direction TB
        A1["+ Salt: REALMusername"]
        A2["PBKDF2-SHA1<br/>4096 iterations"]
        A3["128 or 256-bit AES key"]
        A1 --> A2 --> A3
    end

    subgraph SHA2_PATH["AES-SHA2 (etype 19, 20)"]
        direction TB
        S1["+ Salt: etype_name + \x00 + REALMusername"]
        S2["PBKDF2-SHA256/384<br/>4096 iterations"]
        S3["KDF-HMAC-SHA2"]
        S4["128 or 256-bit AES key"]
        S1 --> S2 --> S3 --> S4
    end

    style RC4_PATH fill:#d645451f,stroke:#d64545
    style DES_PATH fill:#b7791f1f,stroke:#b7791f
    style AES_PATH fill:#2f9e441f,stroke:#2f9e44
    style SHA2_PATH fill:#3b82c41f,stroke:#3b82c4

RC4 has no salt and uses a single fast hash (MD4). AES-SHA1 uses a salt, 4096 PBKDF2-HMAC-SHA1 iterations and a final DK step with the constant kerberos. AES-SHA2 adds an etype name prefix to the salt, switches PBKDF2 to SHA-256 or SHA-384, and replaces DK with KDF-HMAC-SHA2. DES uses a salt but has a tiny 56-bit keyspace.

Comparison

DES (etypes 1, 3) RC4 (etype 23) AES-SHA1 (etypes 17, 18) AES-SHA2 (etypes 19, 20)
IANA name des-cbc-crc, des-cbc-md5 rc4-hmac aes128-cts-hmac-sha1-96, aes256-cts-hmac-sha1-96 aes128-cts-hmac-sha256-128, aes256-cts-hmac-sha384-192
Key size 56 bits effective (8 bytes with parity) 128 bits (16 bytes) 16 bytes (128 bits) for AES128, 32 bytes (256 bits) for AES256 16 bytes (128 bits) for etype 19, 32 bytes (256 bits) for etype 20
Key derivation MIT DES string-to-key (password + salt) MD4(UTF-16LE(password)) = NT hash PBKDF2-HMAC-SHA1, 4096 iterations, then DK (nfold) PBKDF2-HMAC-SHA256 for etype 19, PBKDF2-HMAC-SHA384 for etype 20, 4096 iterations + KDF (SP800-108)
Salt REALM + username (e.g., CONTOSO.COMAdmin) None REALM + username aes128-cts-hmac-sha256-128\x00REALM + username, or aes256-cts-hmac-sha384-192\x00REALM + username
Cipher DES-CBC (IV=key) for etype 1, DES-CBC (IV=0) for etype 3 RC4 AES-128-CTS, AES-256-CTS AES-128-CTS, AES-256-CTS
Integrity CRC32 for etype 1, MD5 for etype 3 HMAC-MD5 HMAC-SHA1-96 HMAC-SHA256-128 (16 bytes), HMAC-SHA384-192 (24 bytes)
RFC 3961 4757 3962 8009
Introduced Windows 2000 Windows 2000 Server 2008 / Vista Windows 11 24H2 / Server 2025, disabled by default
Status Deprecated. Disabled by default in Windows 7 / Server 2008 R2, removed in Server 2025 Deprecated by RFC 8429 (2018); off by default with the April 2026 updates In use; AES256 is the default on modern domains Disabled by default
hashcat Modes for every attack Modes for every attack Modes for every attack No mode

The modes themselves are in the Hash Reference, and measured rates for each etype on the Cracking Speed page.


DES (etypes 1 and 3)

DES-CBC-CRC (etype 1) and DES-CBC-MD5 (etype 3) came from MIT Kerberos and shipped with Windows 2000. Both use 56-bit DES; they differ in the integrity check (CRC32 for etype 1, MD5 for etype 3) and in the CBC IV (the key itself for etype 1, zero for etype 3).

Both etypes produce the same key from the same password and salt. The key is only 56 bits, so in principle the key space itself can be searched no matter how long the password is. hashcat's Kerberos DES modes (38400, 38500, 38600, 39000, 39100, 39200, 39300) do not do that: they take password candidates, run the DES string-to-key on each with the REALM + username salt, and test the result, so they recover the password the same way the RC4 and AES modes do.

DES was disabled by default in Windows 7 and Server 2008 R2 (2009) and can be re-enabled there through the "Network security: Configure encryption types allowed for Kerberos" policy; the USE_DES_KEY_ONLY account flag then restricts an account to DES. It is removed in Server 2025.

RC4-HMAC (etype 23)

Microsoft added RC4-HMAC in Windows 2000 to bridge NTLM and Kerberos. Key derivation: take the password, encode as UTF-16LE, MD4 hash it. Done. The result is the NT hash, and the NT hash is the RC4 key.

There is no salt. Same password, same key, regardless of username or domain. An NT hash pulled from one machine works as a Kerberos key on any DC in the domain. Pass-the-hash and overpass-the-hash both work because of this. The NT hash is completely portable.

The key derivation hashcat has to do per guess is a single MD4(UTF-16LE(candidate)), with no iterations. Each hash is still tested separately: modes 7500, 13100 and 18200 treat the ciphertext of every hash as its own salt, so a candidate is tried against each loaded hash in turn.

RC4 is on Microsoft's deprecated-features list for Server 2025, and Server 2025 KDCs no longer issue RC4 TGTs. The April 2026 updates (CVE-2026-20833, all supported DCs) change the default for accounts with no msDS-SupportedEncryptionTypes to AES-SHA1 only. RC4 still works where it is explicitly enabled.

AES128 and AES256 (etypes 17 and 18)

AES128-CTS-HMAC-SHA1-96 (etype 17) and AES256-CTS-HMAC-SHA1-96 (etype 18) shipped with Vista and Server 2008. Key derivation uses PBKDF2-HMAC-SHA1 with 4096 iterations over a salted password, followed by the RFC 3962 DK step. Much slower to crack than RC4.

Same derivation for both, just different output length (16 bytes for AES128, 32 for AES256). AES256 is the default on modern domains.

AES is slower to crack, not impossible

The 4096 PBKDF2 iterations make AES hundreds of times slower to crack than RC4 per candidate password. The exact gap depends on the device: in hashcat's own benchmark on the CPU used to check this page, mode 13100 ran roughly 200 times faster than mode 19700, and on the RTX 4090 measured for the Cracking Speed page the gap is about 1,500 times (4008.9 against 2.649 MH/s). But weak passwords are still weak. Password1! falls in seconds even with AES.

AES128-SHA2 and AES256-SHA2 (etypes 19 and 20)

AES128-CTS-HMAC-SHA256-128 (etype 19) and AES256-CTS-HMAC-SHA384-192 (etype 20) are defined in RFC 8009. Windows 11 24H2 and Windows Server 2025 include them, disabled by default. They replace SHA1 with SHA2 in both key derivation and integrity checks.

Key derivation is a three-step process:

  1. Salt prefix: prepend the full IANA etype name + \x00 to the standard salt (e.g., aes256-cts-hmac-sha384-192\x00CONTOSO.COMAdmin)
  2. PBKDF2: PBKDF2-HMAC-SHA256 (etype 19) or PBKDF2-HMAC-SHA384 (etype 20) with 4096 iterations (what Windows was observed to use; the RFC 8009 default is 32768)
  3. KDF-HMAC-SHA2: SP 800-108 Counter Mode KDF with label kerberos to produce the final key

Windows uses 4096 iterations, not 32768

RFC 8009 specifies a default of 32768 PBKDF2 iterations. Windows Server 2025 (build 26100) was observed to use 4096 instead, matching the AES-SHA1 iteration count, when the etypes were force-enabled on a lab DC. Microsoft does not document the count. KerbWolf's key derivation for etypes 19 and 20 uses 4096.

Tool support for AES-SHA2

hashcat has no mode for etypes 19 and 20, so these hashes cannot be cracked with it today. -e does not offer them either: AES-SHA2 hashes come from kw-extract, as described under Encryption type selection.


Salt

The salt is mixed into key derivation: appended to the password for DES, and passed as the PBKDF2 salt for AES. Same password on two different accounts = different keys. Computation varies by etype, and for computer accounts the salt changes. KerbWolf treats any sAMAccountName ending in $ as one.

Etype User account (e.g., Admin) Computer account (e.g., DC01$)
DES (1, 3) REALM (uppercase) + username (case-preserved): CONTOSO.COMAdmin REALM + host + hostname.realm (all lowercase): CONTOSO.COMhostdc01.contoso.com
RC4 (23) None — the key is just MD4(UTF-16LE(password)) None
AES-SHA1 (17, 18) REALM (uppercase) + username (case-preserved): CONTOSO.COMAdmin REALM + host + hostname.realm (all lowercase): CONTOSO.COMhostdc01.contoso.com
AES-SHA2 (19, 20) etype_name + \x00 + REALM + username: aes256-cts-hmac-sha384-192\x00CONTOSO.COMAdmin etype_name + \x00 prepended to the computer salt above

The username and realm in an AES or DES hash line are this salt, not labels, so a wrong one silently breaks cracking even with the right password: see Troubleshooting.

RC4 has no salt, which is why it cracks fast and why pass-the-hash works: the key depends on the password alone.


msDS-SupportedEncryptionTypes

Each account's supported etypes are stored in the msDS-SupportedEncryptionTypes AD attribute. The KDC checks this bitmask when issuing tickets.

Bit Value Encryption type
0 0x01 DES-CBC-CRC
1 0x02 DES-CBC-MD5
2 0x04 RC4-HMAC
3 0x08 AES128-SHA1
4 0x10 AES256-SHA1
5 0x20 AES256-SHA1-SK: force AES session keys when RC4 or DES is otherwise allowed (in use since the November 2022 updates)
6 0x40 AES128-SHA2
7 0x80 AES256-SHA2

Common values you'll see:

Value Meaning
0 (not set) KDC applies its DefaultDomainSupportedEncTypes: RC4 tickets historically, 0x27 (DES, RC4, AES session keys) after the November 2022 updates, 0x18 (AES-SHA1 only) on DCs with the April 2026 or later updates
0x04 RC4 only
0x18 AES128 + AES256 SHA1 (both "This account supports Kerberos AES 128/256 bit encryption" checkboxes in ADUC)
0x1C RC4 + AES128 + AES256 SHA1
0x1F All five legacy encryption types
0xF8 AES128 + AES256 SHA1 + AES-SK + AES128-SHA2 + AES256-SHA2 (possible on Server 2025, not a default)
0xFF All eight bits set: the seven encryption types plus the AES-session-key bit

The KDC picks a ticket's etype from the etypes in the request and this attribute, so what -e asks for is not always what comes back: see Encryption type selection.


Windows version timeline

Version Year Supported etypes Key change
Windows 2000 2000 DES-CBC-CRC, DES-CBC-MD5, RC4-HMAC Kerberos introduced to Windows. RC4 is the default.
Server 2003 2003 DES, RC4 Last version without AES support.
Server 2008 2008 DES, RC4, AES128, AES256 AES introduced. All five etypes available. RC4 stays available, with AES preferred.
Server 2008 R2 2009 RC4, AES (DES disabled) DES disabled by default (also Windows 7). Policy to re-enable.
Server 2012 R2 2013 RC4, AES Protected Users group forces AES-only.
Server 2022 2021 RC4, AES
November 2022 updates (all supported versions up to Server 2022) 2022 RC4, AES CVE-2022-37966: AES becomes the default for session keys on accounts with no encryption types set.
Server 2025 2024 RC4 (deprecated), AES-SHA1; AES-SHA2 present but off by default DES removed. The KDC no longer issues RC4 TGTs.
April 2026 updates (Server 2012 to 2025) 2026 AES-SHA1 by default CVE-2026-20833: accounts with no encryption types set default to AES-SHA1 only (0x18). RC4 still works where explicitly enabled.