Machina Client SDK Version 2.1.2
Ionic Security Machina Client SDK for Python users
|
The ChunkCrypto module supports encryption and decryption of all small to medium length text and binary data. It is designed specifically for producing ciphertext that is encoded within the ASCII (base64) character set and is as small as possible (typically a small percentage larger than the plaintext) for ease of use, storage, transfer, etc. This differs from the FileCrypto module (FileCipher Overview), which for the most part emits binary ciphertext and is not particularly concerned about any overhead introduced.
ChunkCrypto is not thread-safe. All classes in the ChunkCrypto module are not thread-safe and should not be used as a shared resource between concurrent threads. In order to use objects in a multi-threaded environment, it is recommended to create one object per thread.
ionicsdk.chunkcipher.ChunkCipherAuto is a special cipher in the sense that it does not represent a format of its own, but instead it automatically chooses the correct chunk cipher to use (e.g. ionicsdk.chunkcipher.ChunkCipherV2) based on the contents of the chunk being encrypted / decrypted. Using this cipher is recommended in most cases since it simplifies the code of the consuming application. An example can be seen here: Example Usage - Simple.
By default, when encrypting using ionicsdk.chunkcipher.ChunkCipherAuto, the result is encoded using the ionicsdk.chunkcipher.ChunkCipherV2 format. When decrypting using ionicsdk.chunkcipher.ChunkCipherAuto, the appropriate ChunkCipher is used.
You acknowledge your access, review and use of the documentation on this page is subject to the Ionic Security Inc. Documentation Use Rights.
© 2016-2021 Ionic Security Inc. All rights reserved. -
Generated on Wed Jul 21 2021 16:23:36 for Machina Client SDK Version 2.1.2 by
1.8.18