在首页看到一个终极加密功能
加密 PHP
// f(ucking) u(ncrackable) e(ncryption) function by BlackHatDBL (www.netforme.net)function fue($hash,$times) { // Execute the encryption(s) as many times as the user wants for($i=$times;$i>0;$i--) { // Encode with base64... $hash=base64_encode($hash); // and md5... $hash=md5($hash); // sha1... $hash=sha1($hash); // sha256... (one more) $hash=hash("sha256", $hash); // sha512 $hash=hash("sha512", $hash); } // Finaly, when done, return the value return $hash;}
回复讨论(解决方案)
太恐怖了点吧
况且不可逆的也算不上加密
太恐怖了点吧
况且不可逆的也算不上加密
哈哈哈哈 主要是这个标题 终极加密把我给震撼了 然后一看代码....崩溃
可知洋人并不总是高明的
$times 也是保存在数据里的吧~~
这简单粗暴的方法。。有老毛子的风范
碉堡了
各种意义上来说很强悍
要是这样加密,反解密咋搞。
要是这样加密,反解密咋搞。
f(ucking) u(ncrackable) e(ncryption) function
不仅各种加密hash函数都搞上了,而且还要多轮加密,真是恐怖。
加密起来确实强
单向加密做校对还是可以.存取就再看看吧
f(ucking) u(ncrackable) e(ncryption)
吓一跳!
要是这样加密,反解密咋搞。 单向加密算法,压根儿就不能解密了,因为加密过程中,就丢失了大部分信息。
太恐怖。。。。。。
跑这么多圈
最终也不是一
$hash=hash("sha512", $hash);
结果么……
加密容易,解密难啊。
我现在越来越佩服 阿桑奇了。
echo fue('hello world',strtotime('now'));
加密一个'hello world',结果死机了,悲催。
没看见 for($i=$times;$i>0;$i--)
这写strtotime('now')变成了超级死循环。
弱弱的问一下,那个$times指的是什么?
$times是次数啊,输入参数里面的
for循环的--用法而已,相当于for($i=0; $i
虽然都叫time,但这个不是指时间,strtotime('now')的结果是1375063003左右,相当于你要循环13亿次。。。
最多叫终极散列功能,不能解密的还叫什么加密啊。其实这么多过程真是无意义
// sha256... (one more)
$hash=hash("sha256", $hash);
// sha512
$hash=hash("sha512", $hash);
有这2句就可以了。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

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

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



Alipay PHP...

Article discusses late static binding (LSB) in PHP, introduced in PHP 5.3, allowing runtime resolution of static method calls for more flexible inheritance.Main issue: LSB vs. traditional polymorphism; LSB's practical applications and potential perfo

JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

Session hijacking can be achieved through the following steps: 1. Obtain the session ID, 2. Use the session ID, 3. Keep the session active. The methods to prevent session hijacking in PHP include: 1. Use the session_regenerate_id() function to regenerate the session ID, 2. Store session data through the database, 3. Ensure that all session data is transmitted through HTTPS.

The application of SOLID principle in PHP development includes: 1. Single responsibility principle (SRP): Each class is responsible for only one function. 2. Open and close principle (OCP): Changes are achieved through extension rather than modification. 3. Lisch's Substitution Principle (LSP): Subclasses can replace base classes without affecting program accuracy. 4. Interface isolation principle (ISP): Use fine-grained interfaces to avoid dependencies and unused methods. 5. Dependency inversion principle (DIP): High and low-level modules rely on abstraction and are implemented through dependency injection.

How to automatically set the permissions of unixsocket after the system restarts. Every time the system restarts, we need to execute the following command to modify the permissions of unixsocket: sudo...

Static binding (static::) implements late static binding (LSB) in PHP, allowing calling classes to be referenced in static contexts rather than defining classes. 1) The parsing process is performed at runtime, 2) Look up the call class in the inheritance relationship, 3) It may bring performance overhead.

How to debug CLI mode in PHPStorm? When developing with PHPStorm, sometimes we need to debug PHP in command line interface (CLI) mode...
