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 中隐藏此代码?