Self-encryption