Platforms to show: All Mac Windows Linux Cross-Platform

CCMD2MBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Encryption and Hash MBS MacOSX Plugin 11.3 Yes No No Yes, macOS only No
Function: The class for MD2 hash.
dim s as new CCMD2MBS
s.Update "The quick brown fox jumps over the lazy dog"

dim m as MemoryBlock = s.Finalize
MsgBox EncodingToHexMBS(m)
Notes: This class uses the CommonCrypto interface which is available on Mac OS X 10.4 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.

Feedback, Comments & Corrections

  • 4 methods
  • 2 shared methods
    • shared method MD2(data as Ptr, dataLength as Integer) as Memoryblock
    • shared method MD2(data as String) as Memoryblock

This class has no sub classes.

Blog Entries

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


The biggest plugin in space...

MBS Xojo blog