Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

EncryptMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Encryption and Hash MBS Encryption Plugin Yes Yes Yes Yes No
Function: This class does a enryption using a 104 Byte Key.
This item is deprecated and should no longer be used. You can use CipherMBS instead.
Notes:
Fixed with version 8.1 to work on 64-bit.

This class is kept for compatibility. On new projects please use the blowfishMBS class which offers more options. And two easy usable shared methods to quickly encrypt and decrypt.

Create a EncryptMBS Object using "e=new EncryptMBS". Then initialize it with your password using "e.init(password)". Now you can call Encode and Decode to get your data encrypted.
The GetKey function is only for you to verify if it is working correctly. For the same password, you should always get the same key and the same result for the same data.
Known issues:
The data length must be aligned to 8 bytes for best results.
e.g. "Hello World!" has a length of 12 bytes and the encode function will only do the first 8 bytes.

The result on Mac and Windows is not the same!
See also AESMBS class and BlowfishMBS class.

Feedback, Comments & Corrections

  • 4 methods
    • method Decode(data as string) as string
    • method Encode(data as string) as string
    • method Init(password as string)
    • method Key as string

This class has no sub classes.

Some examples which use this class:

Blog Entries


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


EKStructuredLocationMBS   -   EnvironmentMBS




Links
MBS Xojo PDF Plugins