Class SDES
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget Selects the cryptographic suite to be used.getKey()getgetvoidsetCrypto(CryptoSuite crypto) set Selects the cryptographic suite to be used.voidsetvoidsetKeyBase64(String keyBase64) set
-
Constructor Details
-
SDES
public SDES()Create a SDES
-
-
Method Details
-
getKey
getMaster key and salt (plain text)
This field provides the the cryptographic master key appended with the master salt, in plain text format. This allows to provide a key that is composed of readable ASCII characters.
The expected length of the key (as provided to this parameter) is determined by the crypto-suite for which the key applies (30 characters for AES_CM_128, 46 characters for AES_CM_256). If the length does not match the expected value, the key will be considered invalid.
If no key is provided, a random one will be generated using the `getrandom` system call.
-
setKey
setMaster key and salt (plain text)
This field provides the the cryptographic master key appended with the master salt, in plain text format. This allows to provide a key that is composed of readable ASCII characters.
The expected length of the key (as provided to this parameter) is determined by the crypto-suite for which the key applies (30 characters for AES_CM_128, 46 characters for AES_CM_256). If the length does not match the expected value, the key will be considered invalid.
If no key is provided, a random one will be generated using the `getrandom` system call.
-
getKeyBase64
getMaster key and salt (base64 encoded)
This field provides the cryptographic master key appended with the master salt, encoded in base64. This allows to provide a binary key that is not limited to the ASCII character set.
The expected length of the key (after being decoded from base64) is determined by the crypto-suite for which the key applies (30 bytes for AES_CM_128, 46 bytes for AES_CM_256). If the length does not match the expected value, the key will be considered invalid.
If no key is provided, a random one will be generated using the `getrandom` system call.
-
setKeyBase64
setMaster key and salt (base64 encoded)
This field provides the cryptographic master key appended with the master salt, encoded in base64. This allows to provide a binary key that is not limited to the ASCII character set.
The expected length of the key (after being decoded from base64) is determined by the crypto-suite for which the key applies (30 bytes for AES_CM_128, 46 bytes for AES_CM_256). If the length does not match the expected value, the key will be considered invalid.
If no key is provided, a random one will be generated using the `getrandom` system call.
-
getCrypto
get Selects the cryptographic suite to be used. For available values, please see the CryptoSuite enum. -
setCrypto
set Selects the cryptographic suite to be used. For available values, please see the CryptoSuite enum.
-