【发布时间】:2012-04-22 12:00:16
【问题描述】:
public static function decryptSessionByDES($str,$key_str){
$decoded =base64_decode($str);
$iv = substr($key_str, 0, mcrypt_get_iv_size(MCRYPT_3DES,MCRYPT_MODE_ECB));
return trim(mcrypt_ecb(MCRYPT_3DES, $key_str, $decoded, MCRYPT_DECRYPT, $iv));
}
如何在 Ruby 中隐藏这段代码?
【问题讨论】:
-
在您的问题中包含示例输入和预期的相应输出可能会有所帮助。
标签: php ruby encryption mcrypt