for a windows desktop application (C#), I need to be able to verify users, using a Joomla user database. The desktop app is "far away" from the database, so to decrease latency, authentication must be done within the windows form application (used as an API to connect to).
I can get the hashed passwords from the database and store them in an object. The hashed passwords are both with an ':' format and without. Made in different versions of Joomla. The current version used is 3.6.
What I want you to do; is to create (winform, no ASP.NET) C# code with unhashed plain text password as input and verify this password against the hashed passwords in the C# dictionary (user,password). If the password is correct, return true, of not.. return false ;-)
The hashed passwords will be updated from the database every 15 minutes.
Just to be sure: No web request are allowed. All verification must be done within the c# winform app, without any calls to Joonla, PHP pages etc. etc.