This module provides various cryptography tools for use in Kamailio configuration file using libgcrypt.
| Parámetro | Tipo | Descripción |
|---|---|---|
| init_vector | str | 3.2. aes_mode (int) 3.3. register_callid (int) |
| aes_mode | int | 3.3. register_callid (int) |
| register_callid | int | 3.1. init_vector (str) |
| init_vector | str | The initialization vector used for the cryptographic operations. This needs to be a string value with 16 bytes lengths. |
| aes_mode | int | Set it to 1 in order to do AES CBC encryption mode. By default, it does AES ECB mode. |
| register_callid | int | Set it to 1 in order to register a callback to core for generation of callid values for requests generated by Kamailio tm module. |
4.2. gcrypt_aes_decrypt(text, key, res)
4.1. gcrypt_aes_encrypt(text, key, res)
Encrypts the text with the key using AES256 ECB encryption algorithm. The result is encoded in base64 format and stored in res. The parameter res must be a read-write variables. The parameters text and key can be static strings or strings with variab
Decrypts the text with the key using AES256 ECB encryption algorithm. The text has to be encoded in base64 format. The parameter res must be a read-write variables. The parameters text and key can be static strings or strings with variables (dynamic
Copyright © 2024 asipto.com