2 Photo and Video Encryption
This page describes the photo and video encryption method for using the SenseID API.
2.1 Customize the encryption key and IV
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.
2.2 Encryption method
Load the photo or video file.
Encrypt the data with AES-256-GCM.
Encode the above result with Base64.
Last updated