Encrypt utils

IEncryptUtils

The IEncryptUtils is used to encrypt and decrypt string. Two methods are available :

  • encrypt(String stringToEncrypt)
  • decrypt(String encrypted)

The interface is accessible via the SDKUtils.UTILS.getEncryptUtils() method.

Examples

import com.axemble.vdoc.sdk.SDKFactory;

public class MyClass {
    private void myFunction() {
        IEncryptUtils encryptUtils = SDKFactory.UTILS.getEncryptUtils();
        String example = 'String to encrypt';
        String encrypted = encryptUtils.encrypt(example);
        String decrypted = encryptUtils.decrypt(encrypted);
    }
}