源码包
53774关于password加密方式的疑问已解决
关于password加密方式的疑问已解决
悬赏5积分
提问者戴先生答案数1阅读数1648发表时间2022-05-10 10:29:40
使用sonarqube扫描的时候提示
$encrypted = base64_encode(mcrypt_encrypt(MCRYPT_DES, substr($secret, 0, 8), $password, MCRYPT_MODE_CBC, $iv));
publicstaticfunctionencryptPassword($password) | ||||
| 293 | { | |||
| 294 | global$config; | |||
| 295 | ||||
| 296 | $encrypted = ''; | |||
| 297 | if(!empty($config->encryptSecret) and$password) | |||
| 298 | { | |||
| 299 | $secret = $config->encryptSecret; | |||
| 300 | $iv = str_repeat("\0", 8); | |||
| 301 | if(function_exists('mcrypt_encrypt')) | |||
| 302 | { | |||
| 303 | $encrypted = base64_encode(mcrypt_encrypt(MCRYPT_DES, substr($secret, 0, 8), $password, MCRYPT_MODE_CBC, $iv)); | |||
| 304 | } | |||
| 305 | elseif(function_exists('openssl_encrypt')) | |||
| 306 | { | |||
| 307 | /* Set password length to multiple of 8. For compatible mcrypt_encrypt function. */ | |||
| 308 | $oversize = strlen($password) % 8; | |||
| 309 | if($oversize != 0) $password .= str_repeat("\0", 8 - $oversize); | |||
| 310 | ||||
| 311 | $encrypted = openssl_encrypt($password, 'DES-CBC', substr($secret, 0, 8), OPENSSL_ZERO_PADDING, $iv); | |||
| 312 | } |
禅道版本:16.5
安装包类型:源码包
操作系统:
客户端浏览器:
答案列表
禅道-李锡碧2022-05-10 17:31:16 禅道密码用的md5加密。 可以联系下商务丁芝(QQ:1481227768),邀请加入技术交流群,群里发下扫描文件,我们确认下。 |
联系我们
联系人
高丽亚/高级客户经理
电话(微信)
17667930330
QQ号码
3645260865
联系邮箱
gaoliya@chandao.com

其他相关问答
提问者: ysd1991 于 2020-09-031547次浏览,1个答案
提问者: YooHalo 于 2016-02-241427次浏览,0个答案
提问者: yidianxing 于 2015-10-232089次浏览,1个答案
提问者: yongheng798 于 2016-08-095112次浏览,1个答案
提问者: ashuma 于 2012-03-085859次浏览,1个答案



精品资料包
1V1产品演示
免费试用增强功能
专属顾问答疑支持


