CCHMacMBS class

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

CCHMacMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Encryption and Hash MBS MacOSX Plugin 11.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Keyed Message Authentication Code (HMAC) functions.
Example
dim h as new CCHMacMBS(CCHMacMBS.kCCHmacAlgSHA1, "Hello")
h.Update "Hello World!"
dim m as MemoryBlock = h.Finalize
MsgBox EncodingToHexMBS(m)

This class uses the CommonCrypto interface which is available on Mac OS X 10.5 or newer and also on iOS. So you can use it to get the same results on both operation systems. Also as you simply use Apple provided encryption, you don't need to apply for an export license for this classes here.

Algorithms Constants

Constant Value Description
kCCHmacAlgMD5 1
kCCHmacAlgSHA1 0
kCCHmacAlgSHA224 5
kCCHmacAlgSHA256 2
kCCHmacAlgSHA384 3
kCCHmacAlgSHA512 4

Digest Length Constants

Constant Value Description
kCCMD5DigestLength 16
kCCSHA1DigestLength 20

This class has no sub classes.

Some examples using this class:

Blog Entries


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


CCCryptorMBS   -   CCMD2MBS


💬 Ask a question or report a problem