Encryption of captured data