I am currently using MonoTouch and SQLite to determine if using a database with encryption is better than a standard .txt file with encryption.
I am trying to use the RijndaelManaged and other System.Security.Cryptography methods to encrypt my SQLite DB, but the DB is getting corrupted.
I found a problem, but I have no idea why this is happening or how to fix it. This is a basic SQLite file with a separate table:
SQLite format 3@ -β ΓΈΓΈ?gtablenewnewCREATE TABLE new (id int(5), name vchar(255))
After using the online application and encrypting this database, I get the following:
SQLite format 3@ - ?gtablenewnewCREATE TABLE new (id int(5), name vchar(255))
This results in damage to the DB. Does anyone know why this is happening? Can someone help me encrypt this DB WITHOUT using SQLCipher?
EDIT: I tried reading the original database as bytes and trying to convert the bytes to a string, but no matter what encoding I use, I get \ 0 after the first row.
Nathan white
source share