Skip to Content
DocsEncryption Key Generation

Encryption Key Generation

The SDK will generate 2 keys - a 128-bit cipher and 256-bit hash keys. These keys will be stored locally on the system after generation and will never go to any VIRcode server.

During the encryption process, it will encrypt the data using 128-bit cipher and additionally hash the (unencrypted) data with the 256-bit cipher using HMAC-SHA-256. This allows the data encrypted and authenticated. The Software Development Kit (SDK) performs a crucial role in ensuring data security and integrity. At its core, the SDK generates two distinct cryptographic keys: a 128-bit cipher key and a robust 256-bit hash key. These keys play a pivotal role in safeguarding sensitive data, and their significance cannot be overstated.

After generation, the SDK securely stores these keys locally on the system. This approach eliminates the need for any communication with VIRcode servers, thus preventing potential vulnerabilities and enhancing overall security.

During the encryption process, the SDK employs a multi-faceted approach to protect data. It utilizes the 128-bit cipher key to encrypt the data, ensuring confidentiality. Additionally, it leverages the 256-bit cipher key in conjunction with the HMAC-SHA-256 algorithm to compute a hash of the unencrypted data. This hashing process authenticates the data, ensuring its integrity and protecting it from unauthorized modifications.

By combining encryption and hashing, the SDK provides a comprehensive security solution. It not only safeguards data from unauthorized access but also verifies its authenticity, ensuring that the data has not been tampered with. This dual approach significantly enhances the overall security posture and helps maintain the confidentiality, integrity, and authenticity of sensitive data.

Generate random keys
Encryption key is
saved locally
Last updated on