Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8596605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T00:43:08+00:00 2026-06-12T00:43:08+00:00

I have a application (made in Delphi) that contains a Authentication system (login &

  • 0

I have a application (made in Delphi) that contains a Authentication system (login & password).

This system is in PHP, and the application get results from PHP using HTTP GET method.
The system returns ‘OK’ if login and password are correct, and ‘NO’ if not correct.

Like this…

procedure Check;
var
 x: string;
begin
 x:=Get('www.mywebsite.com/auth.php?user=xxxxxx&pass=zzzzzz');
 if x='OK' then 
  UnlockFeatures
 else
  MessageBox(0,'You're not VIP','Error',0);
end;

Well, it works fine, but it is very easy to circumvent this system with sniffers, packet editor or proxy.

So, I want to get some information (in PHP) that changes every time, and that could be possible get the same information by my application.

What can I do?

I don’t need codes. Just tips, suggestions, please…

Thanks…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T00:43:09+00:00Added an answer on June 12, 2026 at 12:43 am

    Generally i suggest you not to try to outsmart everyone and invent brand new bicycle – you’d 99% fail with some stupid error making your approach completely insecure. There were a lot of precedences like DVD encryption or Win95 security. You’d better try some industry-approved mechanics, that for years been tested for security, that should have readymade implementations for both Delphi and PHP. Few are

    • TLS (https:// protocol) http://en.wikipedia.org/wiki/Transport_Layer_Security – that would give no protection from MITM attacks, but it sounds exactly what you asked and would require least possible change.
    • You may try implementing SSO via integrated windows authentication if you server would support that
    • You may try setting up OpenID or OAuth environments. Generally their v.1 would be simpler than v.2
    • You may try to bail out of HTTP and use XMPP/Jabber authentication – they take security seriously and libraries for PHP and Delphi exist. Though it should not be much more secure than just using TLS, you may hope that dumb attackers would not be prepared for non-HTTP protocols (there is not internet outside Facebook and such).
    • You may use Bluetooth-like approach to make special connection(“handshake”) once (when both client and servers are controlled) just to make special “tokens” interchanged and stored. That is a generic trait to use “controlled environment” to make 1st connection and use some tokens to prove “we had met before” on later connections using generic challenge/response trait. Those tokens should be unique for each client-user-server combinations! If you’d make one server-global clients-shared set of tokens – they would just be easily copied form one client to another and no more security remains.
      • Those may be coefficients for some not most trivial RNG. constructed be server and saved by both client and server. Then server “challenges” with RNG seed and client should response with proper random value, prooving he knows coefficients.
      • Those may be some asymmetric crypto, where token is some random “message”, then server sends client encruyption keys and expects the correct message encrypted by them, or the token is the password and server generates random text and expects it’s correct crypto digital signature to be passed back. You may find encyption libraries at Torry.net for examples. Lockbox3 and Spring4Delphi are among most tested and noted crypto libraries for Delphi implementing some encrypting standards.

    Consider you priorities and make your choice.
    Would you be able to switch all the authentication layer in one key turn later, having absolutely no care for backward compatibility with non-updated clients, then you might choose the most simple one and only enhance it later if needed. If your users are lazy at upgrades then you’d better choose most secure approach from starters, since you would have no practical way to disable insecure implementation later.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this application I made on a utility based app. How would I
I have a web application made with Spring that runs on Tomcat. On the
I have made an application for IPad in objective C. In this I am
I have made an application in android that lets the user compress and decompress
I have made application where i run to get html of a page,when i
I have made a simple installer application in Delphi, nothing fancy. Basically I include
We have an application developed using Delphi 5 that we cannot upgrade to Delphi
We have a program made in Borland Delphi that uses Word automation to create
I have a Delphi application that uses ShellExecute to call a second Delphi Application
I have an application, full application that made on JSF 1.2. Now we are

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.