@kenzmorvay31/morvay
v1.0.0
Published
Chromium AES-GCM decryption utility
Maintainers
Readme
Morvay
A lightweight utility for decrypting Chromium-based browser cookies and passwords (v10 / v20 encryption) using Windows DPAPI and AES-GCM.
Installation
npm install morvayUsage
const morvay = require('morvay');
const path = require('path');
// 1. Get the path to your browser's Local State file
const localStatePath = path.join(process.env.LOCALAPPDATA, 'Google', 'Chrome', 'User Data', 'Local State');
// 2. Extract the Master Key
const masterKey = morvay.getMasterKey(localStatePath);
// 3. Decrypt an encrypted value (e.g., from SQLite database)
// Let's assume `encryptedBuffer` is the raw buffer you got from the `encrypted_value` column
const decryptedString = morvay.decryptValue(encryptedBuffer, masterKey);
console.log('Decrypted:', decryptedString);Features
- Extracts master key from
Local Stateseamlessly. - Handles Chromium
v10andv20AES-256-GCM decryption. - Fallback for older DPAPI-only encryptions.
Requirements
- Node.js
- Windows OS (due to DPAPI requirements)
