Type Safely

Type Safely

Use CryptoKit To Encrypt and Decrypt Data

Daily Coding Tip 207

Type Safely's avatar
Type Safely
Oct 29, 2022
∙ Paid

aerial photography of airliner
Photo by Ross Parmly on Unsplash

CryptoKit allows you to do many cryptographic operations, and one such operation involves encrypting data using the ChaCha20-Poly1305 AEAD algorithm. AEAD stands for Authenticated Encryption with Additional Data, because you end up with an authentication tag and the cryptographic nonce that was used for the encryption. A…

Keep reading with a 7-day free trial

Subscribe to Type Safely to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Type Safely
Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture