auth gets rewritten

yesterday i decided to rewrite auth in c++, it was okay for the most part. the original rust version was actually pretty solid - it had a nice tui interface using ratatui, and a clean architecture. but i just wanted something simpler.

why c++?

the new version is just simpler (code wise, and implementation wise), it's got a basic cli interface, and doesn't try to be fancy with a tui. the code is fairly clean (not really), and uses modern cpp20+ features like:

  • ranges
  • smart pointers

etc

cli that doesn't suck (is this shit fact checked?!?!)

the rust ver had a tui built using ratatui (very nice library), but was pretty overkill for what i actually needed, now it's just simple commands:

  • add / remove
  • list
  • generate

in my humble opinion i think it's better this way, and more extensible.

reimplementing the tui

at a later date i would like to be able to reimplement the tui, it's something that i have planned, just not right now, i'm hoping to be able to implement all features that the cli has:

  • import / export
  • information about an entry
  • adding an entry / removing an entry (this is obvious)
  • wiping the database of entries (this is the same as removing an entry ig)
  • editing an entry (must have, qol feature)

goodbye

so yeah, auth is now in c++. it's simpler, it's faster, and it doesn't try to be fancy. mission accomplished. now if you'll excuse me, i've got some more code to write that doesn't involve fighting with a borrow checker (cough, cough, RUST.).

sourcelicense