/    Sign up×
Community /Pin to ProfileBookmark

Do we use HTTPS with a PHP login

Hi everybody,

I want to start with a user login routine and I read everywhere that passwords etc are encripted.

I want to use MySql as db where usernames are stored.

Is it recommended to use HTTPS for login screens to ensure that the user datas entered are secure?

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@Tim158Jan 06.2004 — If your host supports SSL then yes by all means use it. Most people but do not bother using SSL unless they are gathering sensitive information from the user such as credit card details etc.

Instead, you can encrypt your passwords using MD5 (or message digest 5) before storing them in your database, and decrypt them for authentication.

<?php

$code= md5($password);

echo "Unencrypted password is $pass";

echo "Encrypted password is $code";

?>
×

Success!

Help @JanKok spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.15,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...