endurox.tpencrypt¶
- endurox.tpencrypt(*args, **kwargs)¶
Overloaded function.
tpencrypt(input: bytes, flags: int = 0) -> bytes
Encrypt data block (byte array).
For more details see tpencrypt(3) C API call.
- raise AtmiException:
- Following error codes may be present:
TPEINVAL
- Invalid input data.
Parameters:
- inputbytes
Data to encrypt.
- flagsint
Shall be set to 0 (default).
Returns:
- valuebytes
Encrypted value block
tpencrypt(input: str, flags: int = 0) -> str
Encrypt string.
For more details see tpencrypt(3) C API call.
- raise AtmiException:
- Following error codes may be present:
TPEINVAL
- Invalid input data.
Parameters:
- inputstr
Data to encrypt, string.
- flagsint
Shall be set to 0 (default).
Returns:
- valuestr
Encrypted value, Base64 string