Zubrag.com :: Forum

zubrag.com => Website Thumbnail Generator => Topic started by: giolgau99 on June 19, 2018, 01:56:29 PM



Title: Encrypt login_information
Post by: giolgau99 on June 19, 2018, 01:56:29 PM
Hey guys,

I have searched in forum after login_information but with no results which might help me.

Web Page Password Protect  works great guys, I have a question.

Sorry if has been asked before, but I was not able to find it.

In the


Code:
$LOGIN_INFORMATION = array(
  'user' => 'password',
  
);


the user and pass are plain text, can we store them encrypted somehow as md5? https://prnt.sc/jwves2

If someone looks on my server now he can see my user and password, I am using this with a jQuery calendar to store personal things there.

I would appreciate some help, as my skills at this are poor and could not find answers on the net.

Thanks.


Title: Re: Encrypt login_information
Post by: zubrag on July 11, 2018, 12:33:40 PM
Unfortunately could not test, but you could try this. Put encoded password into LOGIN_INFORMATION (as md5)
So it will look like
$LOGIN_INFORMATION = array(
  'user' => '5f4dcc3b5aa765d61d8327deb882cf99',
);

and then you will have to change this:
$pass = $_POST['access_password'];

to this:
$pass = md5($_POST['access_password']);


Title: Re: Encrypt login_information
Post by: giolgau99 on July 12, 2018, 07:53:54 AM
Worked like a charm! Thanks :)