public class

CryptoHTML

extends Object
java.lang.Object
   ↳ com.microstrategy.utils.crypto.CryptoHTML

Class Overview

Encryption of strings. The encrypted string is HTML safe, i.e. may be used in the URL. Class is thread safe.

Summary

Public Methods
String decrypt(byte[] key, String encryptedText)
Decrypts a CryptoHTML encrypted string.
String encrypt(byte[] key, String plainText)
Encrypts a string.
static CryptoHTML getInstance()
This instance utilizes a 64-bit Blowfish cipher, which provides basic security measures against casual snooping, but should not be used for confidential/classified data.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public String decrypt (byte[] key, String encryptedText)

Decrypts a CryptoHTML encrypted string.

Parameters
key encryption key - this should be the same key that was used to encrypt the data
encryptedText encrypted string
Returns
  • original string

public String encrypt (byte[] key, String plainText)

Encrypts a string. String must be non-null otherwise a NullPointerException will be thrown.

Parameters
key encryption key (8-bytes)
plainText string
Returns
  • encrypted string

public static CryptoHTML getInstance ()

This instance utilizes a 64-bit Blowfish cipher, which provides basic security measures against casual snooping, but should not be used for confidential/classified data.

Returns
  • returns a CryptoHTML singleton