Recently my computer was plagued by a .help ransomware virus that appears to have come from an infected word document on the web. As it started renaming files(.[helprecover@foxmail.com].help) and encrypting my C drive files from the top down (alphabetically), I noticed what was happening when some program shortcuts started to go white. The only thing that slowed it down and actually bought me time was the virus was held up trying to encrypt the huge sum of Matlab files one by one, which it never finished todo. (Btw windows defender did not detect anything only once i put malwarebytes on my laptop i was able to quarantine it).
Essentially my question is far fetched but mathematically or conceptually is it possible to create a file or program that is not large but would take forever (long time) to encrypt with AES or the RSA encryption algorithms?