Files
HackBrowserData/crypto/crypto_windows.go
moonD4rk d720762595 feat: decrypt Chromium v10/v11 across host OS
Chromium's v10 means AES-GCM on Windows but AES-CBC on macOS/Linux.
Dispatch the cipher by master-key length (32B GCM, 16B CBC) so one
binary can decrypt a key dumped from a different OS.
2026-06-01 22:44:35 +08:00

16 lines
490 B
Go

//go:build windows
package crypto
import (
"github.com/moond4rk/hackbrowserdata/utils/winapi"
)
// DecryptDPAPI decrypts a DPAPI-protected blob using the current user's
// master key. The actual Win32 call (and its DATA_BLOB / LocalFree dance)
// lives in utils/winapi so every package that needs a syscall handle
// shares a single declaration instead of re-opening Crypt32.dll per call.
func DecryptDPAPI(ciphertext []byte) ([]byte, error) {
return winapi.DecryptDPAPI(ciphertext)
}