A cryptocurrency is a digital currency used to buy goods and services but uses an online ledger with strong cryptography to secure online transactions.