Unlock your own WeChat conversation history and photos with this Dart utility
U

Unlock your own WeChat conversation history and photos with this Dart utility

Unlock your own WeChat conversation history and photos with this Dart utility

1,749 stars
N/A forks
N/A contributors

README

Project documentation from GitHub

Unlock Your WeChat History with This Dart Utility

Ever wanted to do more with your WeChat data? Maybe you're looking to create a personal backup, analyze your messaging habits, or just rescue old photos from the app's somewhat opaque storage system. If you've felt locked out of your own conversation history, you're not alone. WeChat keeps things pretty tightly sealed, but a clever open-source tool is here to change that.

Enter wx_key, a Dart utility that provides a key to your own data. It's a straightforward solution to a common frustration for the technically inclined.

What It Does

In simple terms, wx_key is a Dart library that helps you retrieve the decryption key for your local WeChat database on desktop. WeChat stores your message history, including images and other media, in an encrypted SQLite database on your computer. To read it, you need the key. This tool extracts that key from the system's memory, allowing you to decrypt and access the database file directly.

It doesn't automate the full decryption or provide a GUI—it gives you the essential piece you need to start working with your data programmatically.

Why It's Cool

The clever part here is the approach. Instead of trying to crack encryption, the utility finds the key where it already exists in plaintext: within the RAM of your running WeChat application. It's a practical and legal method for accessing your own data, emphasizing the principle that you should be able to access information stored on your own machine.

This opens up several use cases for developers:

  • Creating custom backups: Build scripts to regularly back up your chats and media in a format you control.
  • Data analysis: Analyze your messaging history (sentiment, frequency, etc.) for personal projects.
  • Media recovery: Easily extract and organize images and files sent over the years that are buried in the app.
  • Learning: It's a great real-world example of working with process memory and encryption in Dart.

How to Try It

Ready to give it a spin? You'll need the Dart SDK installed.

  1. Clone the repository:

    git clone https://github.com/ycccccccy/wx_key.git
    cd wx_key
    
  2. Run the tool: Ensure WeChat for Desktop is running on your computer, then execute the Dart script.

    dart run
    
  3. Use the output: The tool w

Did you like this issue?

Join our weekly newsletter

Love discovering amazing projects?

Help us continue bringing you the best open-source discoveries every week.

Back to Projects
Last updated: Mar 17, 2026