Skip to content

Instantly share code, notes, and snippets.

View neuhaus's full-sized avatar

S. Neuhaus neuhaus

View GitHub Profile
# Dwarf Fortress Premium on Mac (Apple Silicon) — Full Setup Guide
**Tested on:** MacBook Pro M1 Pro, macOS Tahoe 26.3, GPTK 3.0
**Last updated:** March 2026
**Result:** Full game with audio, world generation, and gameplay working
The Steam Premium version of Dwarf Fortress has no native Mac build and the devs have cancelled macOS plans. This guide gets it running on Apple Silicon Macs using Apple's Game Porting Toolkit (GPTK) — no CrossOver, no Whisky (discontinued), no paid software needed.
---
# @OneLogicalMyth
function New-cPassword($unencryptedString) {
# encrypt string to known AES key used by cPassword
$AesObject = New-Object System.Security.Cryptography.AesCryptoServiceProvider
$AesObject.Mode = [System.Security.Cryptography.CipherMode]::CBC
$AesObject.IV = New-Object Byte[]($AesObject.IV.Length)
$AesObject.KeySize = 256
$AesObject.Key = @(0x4e,0x99,0x06,0xe8,0xfc,0xb6,0x6c,0xc9,0xfa,0xf4,0x93,0x10,0x62,0x0f,0xfe,0xe8,
0xf4,0x96,0xe8,0x06,0xcc,0x05,0x79,0x90,0x20,0x9b,0x09,0xa4,0x33,0xb6,0x6c,0x1b)
$encryptor = $AesObject.CreateEncryptor()