Пример #1
0
 protected static string decrypt(YopRequest request, string strResult)
 {
     if (request.isEncrypt() && StringUtils.isNotBlank(strResult))
     {
         if (StringUtils.isNotBlank(request.getParamValue(YopConstants.APP_KEY)))
         {
             strResult = AESEncrypter.decrypt(strResult,
                                              request.getSecretKey());
         }
         else
         {
             strResult = BlowFish.Decrypt(strResult,
                                          request.getSecretKey());
         }
     }
     return(strResult);
 }