includes/rijndael.php
changeset 613 c08670a77871
parent 602 ecbc8d202058
child 801 eb8b23f11744
equal deleted inserted replaced
612:3e73e4996d64 613:c08670a77871
  1687   }
  1687   }
  1688 }
  1688 }
  1689 
  1689 
  1690 function aes_decrypt_cache_store($encrypted, $decrypted, $key)
  1690 function aes_decrypt_cache_store($encrypted, $decrypted, $key)
  1691 {
  1691 {
       
  1692   if ( getConfig('cache_thumbs') != '1' )
       
  1693     return false;
       
  1694   
  1692   $cache_file = ENANO_ROOT . '/cache/aes_decrypt.php';
  1695   $cache_file = ENANO_ROOT . '/cache/aes_decrypt.php';
  1693   // only cache if $decrypted is long enough to actually warrant caching
  1696   // only cache if $decrypted is long enough to actually warrant caching
  1694   if ( strlen($decrypted) < 32 )
  1697   if ( strlen($decrypted) < 32 )
  1695   {
  1698   {
  1696     profiler_log("AES: Skipped caching a string (probably a password, we dunno) because it's too short");
  1699     profiler_log("AES: Skipped caching a string (probably a password, we dunno) because it's too short");