Machina Client SDK Version 2.1.2
Ionic Security Machina Client SDK for Python users
Public Member Functions | Static Public Attributes | List of all members
ionicsdk.chunkcipher.ChunkCipherAuto Class Reference

Cipher that automatically chooses the correct cipher to use for data chunk encryption / decryption. More...

Inheritance diagram for ionicsdk.chunkcipher.ChunkCipherAuto:
ionicsdk.chunkcipher.ChunkCipherBase

Public Member Functions

def __init__ (self, agentkeyservice)
 Constructor which takes an key service refernce. More...
 
- Public Member Functions inherited from ionicsdk.chunkcipher.ChunkCipherBase
def __init__ (self)
 Constructor for base class.
 
def id (self)
 Gets the hard-coded cipher ID of this instance. More...
 
def label (self)
 Gets the hard-coded cipher label of this instance. More...
 
def getLastServerResponse (self)
 Return the Server Response object from the last Agent call. More...
 
def encryptstr (self, plaintext, attributes=None, metadata=None, mutableAttributes=None)
 Encrypts an input string into an output string. More...
 
def encryptstr2 (self, plaintext, encryptattributesInOut)
 Encrypts an input string into an output string. More...
 
def encryptbytes (self, plaintextbytes, attributes=None, metadata=None, mutableAttributes=None)
 Encrypts an input bytes buffer into an output string. More...
 
def encryptbytes2 (self, plaintextbytes, encryptattributesInOut)
 Encrypts an input bytes buffer into an output string. More...
 
def decryptstr (self, ciphertext, metadata=None)
 Decrypts an input string into an output string. More...
 
def decryptstr2 (self, ciphertext, decryptattributesInOut)
 Decrypts an input string into an output string. More...
 
def decryptbytes (self, ciphertext, metadata=None)
 Decrypts an input string into an output byte buffer. More...
 
def decryptbytes2 (self, ciphertext, decryptattributesInOut)
 Decrypts an input string into an output bytes buffer. More...
 

Static Public Attributes

string ID = "ChunkAuto"
 ChunkAuto Chunk Cipher ID.
 
string LABEL = "Chunk Cipher Auto"
 ChunkAuto Chunk Cipher text label.
 

Detailed Description

Cipher that automatically chooses the correct cipher to use for data chunk encryption / decryption.

By default, when encrypting using ChunkCipherAuto, the result is encoded using the ChunkCipherV2 format. When decrypting using ChunkCipherAuto, the appropriate ChunkCipher is used.

Constructor & Destructor Documentation

◆ __init__()

def ionicsdk.chunkcipher.ChunkCipherAuto.__init__ (   self,
  agentkeyservice 
)

Constructor which takes an key service refernce.

Parameters
agentkeyservice(class instance) An Agent or key service used to retrieve and create keys

The documentation for this class was generated from the following file: