Пример #1
0
 public byte[] Decrypt()
 {
     if (!CanDecrypt)
     {
         throw new ApplicationException("Can't decrypt strings");
     }
     return(resourceDecrypter.Decrypt(stringsResource));
 }
Пример #2
0
 byte[] DecryptResource(EmbeddedAssemblyInfo info)
 {
     if (info.isCompressed)
     {
         return(resourceDecrypter.Decrypt(info.resource));
     }
     else
     {
         return(info.resource.CreateReader().ToArray());
     }
 }
Пример #3
0
 byte[] DecryptResource(EmbeddedAssemblyInfo info)
 {
     if (info.isCompressed)
     {
         return(resourceDecrypter.Decrypt(info.resource));
     }
     else
     {
         return(info.resource.GetResourceData());
     }
 }