can anyone explain to me what is 'encrypted' virus... i read in many books and txt's that .. at some point virus writers started to encrypt thir viruses to avoid AV ... but how exactly is that done... i mean... if something is encrypted how can it be executed...

i also read that they make polymorphic encryption engines... if a encyption key is random how can the virus decrypt... again...