When encrypting data using AES, make sure you use a cryptographically secure random salt, also known as a Nonce, for every encryption.
Reusing the same salt can significantly decrease the encryption effectiveness.
CryptoKit does that automatically for you.
over 1 year ago