Ransomware is a type of malware that encrypts files and demands a ransom in exchange for recovery of the data.