Recent

Author Topic: Which DB format to use?  (Read 872 times)

C0m3b4ck

  • New Member
  • *
  • Posts: 30
  • Open-source programs for Windows 95-11 and Linux
    • Github
Which DB format to use?
« on: March 28, 2026, 01:04:31 pm »
Hello, I am making a library app in Lazarus 1.6.2 with FPC 3.0.0. When I made this app in Visual Basic 6, I used .CSV files due to ease of parsing, creation and portability. However, this time I want to add options for encrypted databases.

What is the best database format in FreePascal if I also want to add encryption down the line? What libraries do I use for hashing variables and encrypting databases? Which FPC do they support?

Thank you for your time!  :)
Github profile - https://github.com/C0m3b4ck | YouTube Channel - https://youtube.com/@PrinterFixer
Current Pascal project - https://github.com/C0m3b4ck/BookwormPascal - library book management app

Still making sure I support Win95 for its users out there...

JohnJ

  • Newbie
  • Posts: 4
Re: Which DB format to use?
« Reply #1 on: March 28, 2026, 01:41:18 pm »
Take a look at Sqlite. For encryption look at the online package manager. Sqlite itself may have builtin encryption but I don't recall for sure.

C0m3b4ck

  • New Member
  • *
  • Posts: 30
  • Open-source programs for Windows 95-11 and Linux
    • Github
Re: Which DB format to use?
« Reply #2 on: March 28, 2026, 02:03:53 pm »
Thank you for pointing me to SQlite! Upon reading for encryption libraries supporting both FPC 2.4.4 and FPC 3.0.0, I encountered DCPcrypt, LockBox3, and Delphi Encryption Compendium.

I will be using DCPcrypt for hashing (creates username and password hash upon registering, then compares upon login) and for strongly encrypting other data.

As for what you said, SQLite has extentions such as SQLiteCipher and wxSQLite3, though I am willing to encrypt date before writing in exchange for stronger encryption. Will see how it goes.  :D
« Last Edit: March 28, 2026, 02:08:19 pm by C0m3b4ck »
Github profile - https://github.com/C0m3b4ck | YouTube Channel - https://youtube.com/@PrinterFixer
Current Pascal project - https://github.com/C0m3b4ck/BookwormPascal - library book management app

Still making sure I support Win95 for its users out there...

LemonParty

  • Hero Member
  • *****
  • Posts: 537
Lazarus v. 4.99. FPC v. 3.3.1. Windows 11

cdbc

  • Hero Member
  • *****
  • Posts: 2818
    • http://www.cdbc.dk
Re: Which DB format to use?
« Reply #4 on: March 28, 2026, 05:18:22 pm »
Hi
I'd go with DCPCrypt (New version on github surfaced last week) and SQLite3.
I use this combo for desktop apps and it works really well =^
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE6/QT6 -> FPC Release -> Lazarus Release &  FPC Main -> Lazarus Main

C0m3b4ck

  • New Member
  • *
  • Posts: 30
  • Open-source programs for Windows 95-11 and Linux
    • Github
Re: Which DB format to use?
« Reply #5 on: March 29, 2026, 07:09:43 am »
Hi
I'd go with DCPCrypt (New version on github surfaced last week) and SQLite3.
I use this combo for desktop apps and it works really well =^
Regards Benny

Thank you Benny! I did decide to use DCPCrypt due to its various encryption modules and support for both FPC 2.4.4 and 3.0.0  :D
Github profile - https://github.com/C0m3b4ck | YouTube Channel - https://youtube.com/@PrinterFixer
Current Pascal project - https://github.com/C0m3b4ck/BookwormPascal - library book management app

Still making sure I support Win95 for its users out there...

 

TinyPortal © 2005-2018