Let’s say a hacker wanted to change a transaction that happened 60 minutes, or six blocks, ago—maybe to remove evidence that she had spent some bitcoins, so she could spend them again. Her first step would be to go in and change the record for that transaction. Then, because she had modified the block, she would have to solve a new proof-of-work problem—find a new nonce—and do all of that computational work, all over again. (Again, due to the unpredictable nature of hash functions, making the slightest change to the original block means starting the proof of work from scratch.) From there, she’d have to start building an alternative chain going forward, solving a new proof-of-work problem for each block until she caught up with the present.

In 2013, Mark Gimein estimated electricity consumption to be about 40.9 megawatts (982 megawatt-hours a day).[9] In 2014, Hass McCook estimated 80.7 megawatts (80,666 kW). As of 2015, The Economist estimated that even if all miners used modern facilities, the combined electricity consumption would be 166.7 megawatts (1.46 terawatt-hours per year).[10]
The difficulty is the measure of how difficult it is to find a new block compared to the easiest it can ever be. The rate is recalculated every 2,016 blocks to a value such that the previous 2,016 blocks would have been generated in exactly one fortnight (two weeks) had everyone been mining at this difficulty. This is expected yield, on average, one block every ten minutes.
The software delivers the work to the miners and receives the completed work from the miners and relays that information back to the blockchain. The best Bitcoin mining software can run on almost any desktop operating systems, such as OSX, Windows, Linux, and has even been ported to work on a Raspberry Pi with some modifications for drivers depending on the platform.

Cryptocurrency mining can be an expensive proposition, requiring computing hardware and electricity. Cryptojacking offers cybercriminals a way to steal computing power from other people to bypass the effort and expense. Cryptojacking software operates on computers in the background, with the only evidence of its presence signified by a user’s device overheating or slowing down.
In 2014 prices started at $770 and fell to $314 for the year.[31] In February 2014 the Mt. Gox exchange, the largest bitcoin exchange at the time, said that 850,000 bitcoins had been stolen from its customers, amounting to almost $500 million. Bitcoin's price fell by almost half, from $867 to $439 (a 49% drop). Prices remained low until late 2016.[citation needed]