Giter VIP home page Giter VIP logo

crypt12-decrypt's Introduction

GO

Crypt12 Decrypt

Decrypt Whatsapp crypt12 sqlite database files

Crypt12 algorithm

  • AES GCM mode encryption using 128 bit block size and 16 bytes IV (nonce)

  • key file must be 158 byte long (only last 32bytes represent the key)

Key

  • crypt12 file includes 67 byte header and 20 byte trailer which needs to be removed

crypt12file

Usage example

  1. Ensure you have the key file (key) and crypt12 file (msgstore.db.crypt12) in the same directory with the go entrypoint. You can use the existing key and msgstore files in the repo for testing.
  • Run using GO:
go run crypt12-decrypt
  • Or run Windows executable:
crypt12-decrypt.exe
  1. Otherwise use the necessery arguments:
go run crypt12-decrypt.go -h
Usage of crypt12-decrypt.exe:
  -crypt12file string
        crypt12 file path (default "msgstore.db.crypt12")
  -keyfile string
        decryption key file path (default "key")
  -outputfile string
        decrypted output file path (default "msgstore.db")

Build

go get github.com/CanciuCostin/crypt12-decrypt

go build crypt12-decrypt -> built with go version 1.14.4

crypt12-decrypt's People

Contributors

canciucostin avatar prasannathapa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

crypt12-decrypt's Issues

Support for re-encryption

Hey! Thanks for this awesome repo. You saved me from a very important data loss. A part of my database got corrupted, and thanks to your tool I was able to decrypt it and fix the issue. However, now I need to re-encrypt it, so that I can put it back onto the device and restore that backup.
Is this something that you can do, or know any reliable tool as an alternative? Thanks!

Support for crypt1

Hey WhatsApp use the crypt1 suffix on sticker backups
Probably it backups the favourite sticker and stuff
Can you support that ?

Typo

image
is it 57 or 67 bytes?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.