ksb.csle.didentification.privacy
Object that contains message ksb.csle.common.proto.StreamDidentProto.EncryptionInfo EncryptionInfo contains attributes as follows:
enum EncryptionKey { NORMAL = 0; SHA1 = 1; SHA512 = 2; } enum EncryptionMethod { DES = 0; AES = 1; } message EncryptionInfo { repeated int32 selectedColumnId = 1; required EncryptionKey key = 2 [default = NORMAL]; required EncryptionMethod method = 3 [default = DES]; repeated FieldInfo fieldInfo = 4; optional PrivacyCheckInfo check = 5; }
Anonymizes the column specified in src dataframe using generic 'Type' method.
Anonymizes the column specified in src dataframe using generic 'Type' method. The 'Type' is decided by inherited object module.
Dataframe to anonymize
Column to be anonymized
DataFrame The dataframe which replaces original column with anonymized column
encrypts the column of src dataframe using defined encryption method.
encrypts the column of src dataframe using defined encryption method.
Dataframe to anonymize
Column to be pseudo-anonymized
DataFrame Anonymized dataframe
De-anonymizes the anonymized dataframe using defined encryption method
De-anonymizes the anonymized dataframe using defined encryption method
Dataframe to de-anonymize
Column name to be de-anonymized
DataFrame The de-anonymized dataframe
Decrypts the given array of encrypted bytes
Decrypts the given array of encrypted bytes
the array of bytes in the value to be de-anonymized.
key to anonymize
the anonymization method to apply (AES, DES)
Array[Byte] The array of bytes in the deanonymized value
Encrypts the given array of bytes
Encrypts the given array of bytes
the array of bytes in the value to anonymize.
key to anonymize
the anonymization method to apply (AES, DES)
Array[Byte] The array of bytes in the anonymized value
Returns column name from src dataframe specified by the column ID defined by protobuf.
Returns column name from src dataframe specified by the column ID defined by protobuf.
dataframe to get names of columns.
column ID to anonymize.
String.
Returns column names from src dataframe specified by column IDs.
Returns column names from src dataframe specified by column IDs. Note that the column with invalid IDs are ignored.
dataframe to get names of columns.
Array[String].
Checks the given column ID is valid.
Checks the given column ID is valid.
dataframe to get names of columns.
Boolean.
Checks the given column Name is valid.
Checks the given column Name is valid.
dataframe to get names of columns.
column Name.
Boolean.
:: ApplicationDeveloperApi ::
Operator that implements the encryption module in the Pseudo Anonymization algorithm, and encrypts the values of the data using encryption algorithm. Currently, DES (Data Encryption Standard) and AES (Advanced DES) are implemented (key size: 56 (DES), 128 (AES)). Especially, due to the importance of the key generation, it makes the key based on SHA1 and SHA512.