每日一句 ( 2024920 )  

Years may wrinkle the skin, but to give up enthusiasm wrinkles the soul.

歲月留痕,只及肌膚;激情不再,皺起心靈。———— Samuel Ullman

php-字符串加解密函數(shù)

嗯,一個(gè)很不錯(cuò)的php字符串加密函數(shù),最近, 從discuz里面發(fā)現(xiàn)了一個(gè)很牛的加密解密函數(shù)。此函數(shù)的厲害之處在于可以在指定時(shí)間內(nèi)加密還原字符串,超時(shí)無法還原這樣我們就可以拿此函數(shù)來做很多用途了,比如:?jiǎn)吸c(diǎn)登錄的token加密傳輸啦,臨時(shí)密碼啦等等 /*** @param string $string 原文或者密文* @param string $operation 操作(ENCODE | DECODE), 默認(rèn)為 DECODE* @param string $key 密...