Bitcoin uses the SHA-256 cryptographic hash algorithm that was created by the US National Security Agency in 2001 to encrypt information and keep it secure. Understand how it works in this post.