Platforms to show: All Mac Windows Linux Cross-Platform

Back to CipherMBS class.

Previous items Next items

CipherMBS.aria_192_cbc as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 23.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.

CipherMBS.aria_192_ccm as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 23.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.

CipherMBS.aria_192_cfb1 as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 23.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.

CipherMBS.aria_192_cfb128 as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 23.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.

CipherMBS.aria_192_cfb8 as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 23.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.

CipherMBS.aria_192_ctr as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 23.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.

CipherMBS.aria_192_ecb as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 23.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.

CipherMBS.aria_192_gcm as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 23.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.

CipherMBS.aria_192_ofb as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 23.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.

CipherMBS.aria_256_cbc as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 23.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.

CipherMBS.aria_256_ccm as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 23.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.

CipherMBS.aria_256_cfb1 as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 23.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.

CipherMBS.aria_256_cfb128 as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 23.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.

CipherMBS.aria_256_cfb8 as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 23.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.

CipherMBS.aria_256_ctr as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 23.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.

CipherMBS.aria_256_ecb as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 23.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.

CipherMBS.aria_256_gcm as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 23.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.

CipherMBS.aria_256_ofb as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 23.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.

CipherMBS.bf_cbc as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher for Blowfish with CBC mode.
Example

Dim key As String = "Hello World"
Dim iv As MemoryBlock = "12345678"

// encrypt it
Dim c As CipherMBS = CipherMBS.bf_cbc

Call c.EncryptInit(key, iv)
Dim Input As String = "Hello World. Just a test."

Dim encrypted As String = c.ProcessString(Input) + c.FinalizeAsString

// decrypt it
Dim d As CipherMBS = CipherMBS.bf_cbc

Call d.DecryptInit(key, iv)
Dim unencrypted As String = d.ProcessString(encrypted) + d.FinalizeAsString

break // check in debugger

Some examples using this method:

CipherMBS.bf_cfb64 as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher for Blowfish with CFB64 mode.
Example
dim CKey as MemoryBlock = "1234567812345678"
dim CIV as MemoryBlock
dim data as string = "Hello World. Just a test!"

dim c as CipherMBS = CipherMBS.bf_cfb64
call c.EncryptInit Ckey, CIV

dim output1 as string = c.ProcessString(data)
output1 = output1 + c.FinalizeAsString

CIV = nil
c = CipherMBS.bf_cfb64
call c.DecryptInit Ckey, CIV

dim output2 as string = c.ProcessString(output1)
output2 = output2 + c.FinalizeAsString

MsgBox "Encrypred via "+c.Name+" as hex: "+EncodeHex(output1)+EndOfLine+"Decrypted: "+output2

Some examples using this method:

CipherMBS.bf_ecb as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher for Blowfish with ECB mode.

CipherMBS.bf_ofb as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher for Blowfish with OFB mode.

CipherMBS.BytesToKey(cipher as CipherMBS, digest as DigestMBS, Salt as MemoryBlock, InputKey as Memoryblock, IterationCount as Integer, byref OutputKey as memoryblock, byref IV as memoryblock) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Derives a key and IV from a given input data.

Returns true on success or false on failure.

BytesToKey() derives a key and IV from various parameters. type is the cipher to derive the key and IV for. md is the message digest to use. The salt paramter is used as a salt in the derivation: it should point to an 8 byte buffer or nil if no salt is used. data is a buffer containing datal bytes which is used to derive the keying data. count is the iteration count to use. The derived key and IV will be written to key and iv respectively.

A typical application of this function is to derive keying material for an encryption algorithm from a password in the data parameter.

Increasing the count parameter slows down the algorithm which makes it harder for an attacker to peform a brute force attack using a large number of candidate passwords.

If the total key and IV length is less than the digest length and MD5 is used then the derivation algorithm is compatible with PKCS#5 v1.5 otherwise a non standard extension is used to derive the extra data.

Newer applications should use more standard algorithms such as PBKDF2 as defined in PKCS#5v2.1 for key derivation.

Key Derivation Algorithm

The key and IV is derived by concatenating D_1, D_2, etc until enough data is available for the key and IV. D_i is defined as:

D_i = HASH^count(D_(i-1) || data || salt)

where || denotes concatentaion, D_0 is empty, HASH is the digest algorithm in use, HASH^1(data) is simply HASH(data), HASH^2(data) is HASH(HASH(data)) and so on.

The initial bytes are used for the key and the subsequent bytes for the IV.

Some examples using this method:

CipherMBS.camellia_128_cbc as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.

CipherMBS.camellia_128_cfb1 as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.

CipherMBS.camellia_128_cfb128 as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.

CipherMBS.camellia_128_cfb8 as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.

CipherMBS.camellia_128_ctr as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 23.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.

CipherMBS.camellia_128_ecb as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.

CipherMBS.camellia_128_ofb as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.

CipherMBS.camellia_192_cbc as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.

CipherMBS.camellia_192_cfb1 as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.

CipherMBS.camellia_192_cfb128 as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.

CipherMBS.camellia_192_cfb8 as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.

CipherMBS.camellia_192_ctr as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 23.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.

CipherMBS.camellia_192_ecb as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.

CipherMBS.camellia_192_ofb as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.

CipherMBS.camellia_256_cbc as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.
Example
dim CKey as MemoryBlock = "1234567812345678"
dim CIV as MemoryBlock
dim data as string = "Hello World. Just a test!"

dim c as CipherMBS = CipherMBS.camellia_256_cbc
call c.EncryptInit Ckey, CIV

dim output1 as string = c.ProcessString(data)
output1 = output1 + c.FinalizeAsString

CIV = nil
c = CipherMBS.camellia_256_cbc
call c.DecryptInit Ckey, CIV

dim output2 as string = c.ProcessString(output1)
output2 = output2 + c.FinalizeAsString

MsgBox "Encrypred via "+c.Name+" as hex: "+EncodeHex(output1)+EndOfLine+"Decrypted: "+output2

CipherMBS.camellia_256_cfb1 as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.

CipherMBS.camellia_256_cfb128 as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.

CipherMBS.camellia_256_cfb8 as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.

CipherMBS.camellia_256_ctr as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 23.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.

CipherMBS.camellia_256_ecb as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.

CipherMBS.camellia_256_ofb as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.

CipherMBS.cast5_cbc as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.

CipherMBS.cast5_cfb64 as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.

CipherMBS.cast5_ecb as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.

CipherMBS.cast5_ofb as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.

CipherMBS.chacha20 as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 23.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.

CipherMBS.chacha20_poly1305 as CipherMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Encryption and Hash MBS Encryption Plugin 23.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the cipher.

Previous items Next items

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


The biggest plugin in space...