Platforms to show: All Mac Windows Linux Cross-Platform

Back to CipherMBS class.

CipherMBS.BlockSize as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Encryption and Hash MBS Encryption Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries the block size for this cipher.

(Read only property)

CipherMBS.Encrypting as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Encryption and Hash MBS Encryption Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether the class is encrypting or decrypting.

True if encrypting or false for decrypting.
(Read only property)

CipherMBS.Flags as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Encryption and Hash MBS Encryption Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries the flags for the cipher.

(Read only property)

CipherMBS.HasVariableKeyLength as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Encryption and Hash MBS Encryption Plugin 23.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether this cipher has variable key length.

(Read only property)

CipherMBS.IVLength as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Encryption and Hash MBS Encryption Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries the size of the initialization vector.

(Read only property)

Some examples using this property:

CipherMBS.KeyLength as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Encryption and Hash MBS Encryption Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The key length.

(Read and Write property)

CipherMBS.Mode as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Encryption and Hash MBS Encryption Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries cipher mode.

(Read only property)

CipherMBS.Name as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Encryption and Hash MBS Encryption Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The name of the cipher engine.

(Read only property)

CipherMBS.Padding as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Encryption and Hash MBS Encryption Plugin 16.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether to apply padding or not.
Example
dim c as CipherMBS = CipherMBS.aes_256_ctr

call c.EncryptInit "Hello"

MsgBox "default: "+str(c.Padding)
c.Padding = false

MsgBox "set to false: "+str(c.Padding)
c.Padding = true

MsgBox "set to true: "+str(c.Padding)

On by default.
(Read and Write property)

CipherMBS.RC2KeyBits as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Encryption and Hash MBS Encryption Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The number of bits for RC2.

(Read and Write property)

CipherMBS.RC5Rounds as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Encryption and Hash MBS Encryption Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The number of rounds for RC5.

(Read and Write property)

CipherMBS.ZeroPaddingKey as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Encryption and Hash MBS Encryption Plugin 23.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether to do zero padding for the key to reach minimum/default length.
Example

Var AESCipher As CipherMBS = CipherMBS.aes_128_cbc
Var BFCipher As CipherMBS = CipherMBS.bf_cbc
Break // look in debugger

Defaults to true, if key is not of variable length for the cipher.
e.g. AES 128 has a 16 byte key size, so we fill up with zeros to reach that.
(Read and Write property)

The items on this page are in the following plugins: MBS Encryption Plugin.


The biggest plugin in space...