Solved

MySQL can encrypt password?

Posted on 2013-05-27
6
592 Views
Last Modified: 2013-05-30
I'm from the .net/SQL Server world and in SQL Server, we can use .net membership to create usernames/passwords with passwords being encrypted...

I've been asked to work on and learn a PHP site. Looking at the database using mySQLAdmin, i see a table with username and passwords but the passwords are plain text..

Passwords cant be encrypted using PHP or in MySQL database?
0
Comment
Question by:Camillia
6 Comments
 
LVL 21

Assisted Solution

by:Tapan Pattanaik
Tapan Pattanaik earned 250 total points
Comment Utility
HI  Farzadw,

How to Encrypt Passwords in the Database:

http://webcheatsheet.com/php/md5_encrypt_passwords.php

how to encrypt password in MySQL database? :

http://bytes.com/topic/mysql/answers/795983-how-encrypt-password-mysql-database
0
 
LVL 12

Accepted Solution

by:
duttcom earned 250 total points
Comment Utility
Yes, you can encrypt them. If you open up the user table and either edit, or perhaps more safely create a new user to test it, choose MD5 from the dropdown in the Function column for the password field. On saving, the password will be encrypted.
0
 
LVL 108

Expert Comment

by:Ray Paseur
Comment Utility
In the future you might consider leaving these questions open a little longer.  There is a lot of information you need to know before you do something like this in PHP, and if the question is open longer you will get more experts' eyes on it.  And probably more expert advice, too.  Just a thought, ~Ray
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 7

Author Comment

by:Camillia
Comment Utility
Thanks Ray. I close them because I sometimes get abandoned email to close the question. But I will do that, next time.
0
 
LVL 108

Expert Comment

by:Ray Paseur
Comment Utility
I always try to give the questions 24 hours.  It usually works well for me.  Best regards, ~Ray
0
 
LVL 7

Author Comment

by:Camillia
Comment Utility
sure, thanks
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to dynamically set the form action using jQuery.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now