Padding Property
The padding type to apply to the encrypted data.
Syntax
public var padding: SymmetriccryptoPaddings
public enum class SymmetriccryptoPaddings(val value: Int) {
scpNone(0),
scpPKCS5(1),
scpANSIX923(2);
}
Default Value
1
Remarks
Use this property to specify the padding type to use with the encrypted data. A paddingtype commonly used in modern security environments is PKCS#5.
scpNone | 0 | No padding. You might need to adjust the length of the input data to align it by the encryption block boundary. |
scpPKCS5 | 1 | Standard PKCS5 (sometimes also referred to as PKCS7) padding |
scpANSIX923 | 2 | ANSI X.923 padding |