Ransomware is a type of malicious software that is designed to block access to a computer system or files until…