Skip to main content
edited tags
Link
otus
  • 32.4k
  • 5
  • 73
  • 167
Tweeted twitter.com/StackCrypto/status/687156031613480960
Source Link
Halen
  • 161
  • 3

Generating a key to use with AES

I'm going paperless, and I want to encrypt the documents that I scan. I'd like to use CommonCrypto to perform AES-XTS encryption on each file. I'm a software engineer, and I like the idea of being able to write my own wrapper around the library. However, I am not a crypto expert by any means. If I understand IVs and salting correctly, is it possible to use one long passphrase to generate a unique encryption key for each file? Also, is this general approach a good idea, or should I go in a different direction?