What I am trying to find out is how to securely send a username and password to an API. Basically I am accessing a restful API using a URL like "https://myapi.com/api/username=test&password=test123". If the username and password are correct the API will return a JSON page. How would I go about sending the information securely to the API URL?
straylight
0
Newbie Poster
Recommended Answers
Jump to PostThe way you're doing it is very bad, very, very bad.
1) You should only let people have access to the api if they have a 'key' (at the moment anyone can access it)
2) You need a way to encrypt the 'password' if not, it's plaintext.
All 3 Replies
phorce
131
Posting Whiz in Training
Featured Poster
straylight
0
Newbie Poster
joefazee
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.