Home Backend Development PHP Tutorial 如若网站保存MD5或者其他方法加密的密码还有泄漏的风险吗

如若网站保存MD5或者其他方法加密的密码还有泄漏的风险吗

Jun 13, 2016 pm 01:25 PM
md md5 quot

如果网站保存MD5或者其他方法加密的密码还有泄漏的风险吗?
原始密码只有用户自己知道,网站也不知道。

并且这个加密算法加上网站自己的一个密码串,那么即使数据库被攻破了,拿到的密码实际上也没用,既不能用来登陆,也不能用于多个网站的通用,即使那个用户各个网站用到都是相同的用户名和密码。

------解决方案--------------------
如果盐值强度够,而且没有泄露的话。应该没问题
------解决方案--------------------

探讨

我的意思是如果某些关键数据,在上传的时候就已经加密,别说黑客,就是网站自己也不知道客户的资料,因为公开的加密算法,而用户从来不用上传自己的密码,永远只有用户自己知道。暴力破解在公开加密算法的情况下,根本很难破解,除了用户自己设置极简单密码这种情况是无解的,别人如果能猜到密码,任何安全技术都无能为力了。

用户名,以及一些文字类需要在浏览器显示的内容,是不能加密的,因为这些东西是需要公开出来的……

------解决方案--------------------
你的理解很对,单独的MD5不是安全的(你可以搜下"在线MD5"),这个也看用户密码的复杂度。如果你的网站保存用户的原始密码,那么公司的程序员都能看到这个密码,而一般用户习惯是所有网站都用同一个用户名和密码。就不说数据被人导出,就是某个变态的程序员,拿着本站的用户名和密码到大的网站试试,估计10个得有7个能登录。
再次鄙视csdn!害得我把所有注册的网站改了一遍。
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How is the MD5 value of Douyin video generated? How is the MD5 value of Douyin video generated? Feb 19, 2024 pm 08:37 PM

What does Douyin video MD5 mean? With the rapid development of Internet technology, video sharing platforms have become an important way for people to obtain fresh information and entertainment. Among many video platforms, Douyin has quickly won the love and popularity of users around the world with its unique short video format and exciting content. Douyin’s video MD5 has also become one of the topics of interest and concern to many users. So, what exactly does Douyin video MD5 mean? First, we need to understand what MD5 is. MD5(MessageDigest

How to use MD5 encryption in MySQL How to use MD5 encryption in MySQL May 28, 2023 pm 02:16 PM

What is MD5? MD5 Message-DigestAgorithm (English: MD5Message-DigestAgorithm), a widely used cryptographic hash function, can produce a 128-bit (16-byte) hash value (hash value) to ensure complete and consistent information transmission. MD5 was designed by American cryptographer Ronald Linn Rivest and made public in 1992 to replace the MD4 algorithm. The program of this algorithm is specified in the RFC1321 standard. After 1996, the algorithm was proven to have weaknesses and could be cracked. For data requiring high security, experts generally recommend using other algorithms.

A guide to MD5 encryption techniques in PHP A guide to MD5 encryption techniques in PHP May 22, 2023 am 08:40 AM

PHP is a very powerful programming language that is widely used in the field of web development. As Web sites grow day by day, website security issues have become a factor that cannot be ignored in Web development. Among them, password security is the most important part. In order to protect user passwords, web developers often use encryption technology to encrypt and store passwords. MD5 is one of the commonly used encryption technologies. This article will focus on MD5 encryption technology in PHP. 1. Introduction to MD5 algorithm MD5 (Me

PHP calculates MD5 hash of file PHP calculates MD5 hash of file Mar 21, 2024 pm 01:42 PM

This article will explain in detail about PHP calculating the MD5 hash of files. The editor thinks it is quite practical, so I share it with you as a reference. I hope you can gain something after reading this article. PHP calculates the MD5 hash of a file MD5 (MessageDigest5) is a one-way encryption algorithm that converts messages of arbitrary length into a fixed-length 128-bit hash value. It is widely used to ensure file integrity, verify data authenticity and create digital signatures. Calculating the MD5 hash of a file in PHP PHP provides multiple methods to calculate the MD5 hash of a file: Use the md5_file() function. The md5_file() function directly calculates the MD5 hash value of the file and returns a 32-character

What is an MD5 hash value? What is an MD5 hash value? Feb 18, 2024 pm 08:50 PM

What is the MD5 value? In computer science, MD5 (MessageDigestAlgorithm5) is a commonly used hash function used to digest or encrypt messages. It produces a fixed-length 128-bit binary number, usually represented in 32-bit hexadecimal. The MD5 algorithm was designed by Ronald Rivest in 1991. Although the MD5 algorithm is considered no longer secure in the field of cryptography, it is still widely used in data integrity verification and file verification.

What is the length of the md5 value? What is the length of the md5 value? Feb 23, 2024 pm 02:06 PM

Title: What is the length of an MD5 value? Text: MD5 (MessageDigestAlgorithm5) is a commonly used hash algorithm that inputs a message of any length and produces a 128-bit (16-byte) hash value as output. The MD5 algorithm has the following characteristics: Fixed-length output: Regardless of the length of the input message, the MD5 algorithm can generate a 128-bit hash value no matter how long the input message is. This provides convenience for verifying data integrity by comparing different data

How to implement MD5 hash algorithm using java How to implement MD5 hash algorithm using java Sep 21, 2023 am 08:31 AM

How to use Java to implement the MD5 hash algorithm MD5 (MessageDigestAlgorithm5) is a commonly used hash algorithm used to encrypt and verify data. In Java, we can use the MessageDigest class to implement the MD5 hash algorithm. The following is a simple sample code that demonstrates how to implement the MD5 algorithm using Java. importjava.security.MessageDigest;

Will modified MD5 be considered original content? Will modified MD5 be considered original content? Feb 19, 2024 pm 08:04 PM

Is it considered original after modifying md5? In the Internet era, creating original content has become an important value and resource. However, what follows is questioning of originality and infringement. In order to prevent piracy and plagiarism, many people try to use different methods to protect their original works. One of the common methods is to use the MD5 algorithm to modify the work to achieve the effect of "algorithm protection". MD5 (MessageDigestAlgorithm5) is a commonly used message digest algorithm, which can

See all articles