| | |
| | | import com.lf.server.entity.ctrl.DownloadReqEntity; |
| | | import com.lf.server.entity.data.DownloadEntity; |
| | | import com.lf.server.entity.data.MetaFileEntity; |
| | | import com.lf.server.entity.show.PipelineEntity; |
| | | import com.lf.server.entity.sys.UserEntity; |
| | | import com.lf.server.helper.*; |
| | | import com.lf.server.mapper.data.DownloadMapper; |
| | |
| | | /** |
| | | * 解密 |
| | | * |
| | | * @param pe 管道分析实体类 |
| | | * @return 是/否解密成功 |
| | | */ |
| | | public static boolean decryptPwd(PipelineEntity pe) { |
| | | try { |
| | | String pwd = RsaHelper.decrypt(pe.getPwd()); |
| | | if (StringHelper.isEmpty(pwd)) { |
| | | return false; |
| | | } |
| | | |
| | | pe.setPwd(pwd); |
| | | |
| | | return true; |
| | | } catch (Exception ex) { |
| | | log.error(ex.getMessage(), ex); |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 解密 |
| | | * |
| | | * @param pwd 加密密码 |
| | | * @return 原始密码 |
| | | */ |