There are a number of vectors ransomware can take to access a computer. The costs can range from a few hundred dollars to thousands, payable to cybercriminals in Bitcoin.
Users are shown instructions for how to pay a fee to get the decryption key. The attacker then demands a ransom from the victim to restore access to the data upon payment. Ransomware is a form of malware that encrypts a victim's files.