Cryptography is the method which protects data using codes (like hashing and encryption.)
Developers apply cryptography whenever there’s a need for higher security and privacy. It transforms plain text (or other data) into an unreadable string of random characters. This guarantees information security from prying eyes.