Ransomware is a type of malware that encrypts a user’s files and demands a ransom be paid to the attacker in order to decrypt the files. Malware, on the other hand, is a general term used to describe any type of malicious software.