Skip to content

How to decrypt SQLite externally #130

Answered by Bubka
belibug asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

Encryption is done with the Laravel encrypter, basically it is an openssl encrypt/decrypt process with a AES-256-CBC cipher:

    public function decrypt($payload, $unserialize = true)
    {
        $payload = $this->getJsonPayload($payload);

        $iv = base64_decode($payload['iv']);

        $this->ensureTagIsValid(
            $tag = empty($payload['tag']) ? null : base64_decode($payload['tag'])
        );

        // Here we will decrypt the value. If we are able to successfully decrypt it
        // we will then unserialize it and return it out to the caller. If we are
        // unable to decrypt this value we will throw out an exception message.
        $decrypted = \openssl_…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@belibug
Comment options

Answer selected by belibug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants