Skip to content

Instantly share code, notes, and snippets.

@thecodingcod
thecodingcod / dbeaver_sqlcipher.md
Last active July 1, 2024 13:52
Setting up Dbeaver (The Universal DBMS) to work with SqlCipher Databases

Setting up Dbeaver (The Universal DBMS) to work with SqlCipher Databases

I’ve tried multiple solutions to browse SqlCipher Databases and the only one that seemed to work properly was [DB Sqlite Browser](DB Browser for SQLite (sqlitebrowser.org)) with easy GUI to get into the db. but … the overall experience of that application didn’t really satisfy me!

I knew DBeaver from long time ago, and i wondered if i can use it with SQLCipher, but it was surprisingly a shock that it doesn’t work directly, but with a couple of hours of researching and trying different methods i finally came up with a way to configure it Out-of-the box to make it work!

The reason I wrote this gist was to help others who have the same issue as it seems there is no guide to show how to do so!

@Defelo
Defelo / totp.py
Last active November 30, 2021 13:22
import base64
import hashlib
import hmac
import secrets
import time
class TOTP:
def __init__(self, secret: str):
self.secret = secret