Zubrag.com
July 19, 2018, 11:06:56 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Encrypt login_information  (Read 144 times)
giolgau99
Newbie
*
Posts: 2


« 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.

Logged
zubrag
Administrator
Hero Member
*****
Posts: 787


WWW
« Reply #1 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']);
Logged
giolgau99
Newbie
*
Posts: 2


« Reply #2 on: July 12, 2018, 07:53:54 AM »

Worked like a charm! Thanks Smiley
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC