Thanks for this script. I did something similar using the scrypt package.
print(scrypt.hash(pw, salt, buflen = 32).hex())
At least I now know, that both ways to generate the key, mine and yours, produce the same hex key in the end.
Nevertheless, I still can’t access the database using sqlcipher. I always get an error
Error: file is not a database
Doing the same on my Jolla Phone (sqlcipher 3.15), I get something similar:
Error: file is encrypted or is not a database
I’m tempted to revert to my non-working whisperfish config to see whether whisperfish can still read the database or if the database file is broken.
Thanks for pointing to sqlitebrowser
! I just installed that in ArchLinux but opening the file also tells me that it doesn’t seem to be a database. But maybe, I’m just too stupid to find out how to open an encrypted database…