This page describes the photo and video encryption method for using the SenseID API.
SenseID requires that personal data (photos and videos) must be encrypted before being uploaded via APIs. AES-256-GCM is adopted as the encryption algorithm. The key and IV required for encryption are set as follows by default.
To customize the key and the IV, update the environment variables PARAM_DECRYPT_KEY
and PARAM_DECRYPT_IV
. The key is 32 characters and the IV is 12 characters.
Load the photo or video file.
Encrypt the data with AES-256-GCM.
Encode the above result with Base64.