public class Encryptors extends Object
BytesEncryptor
and TextEncryptor
implementations.Modifier and Type | Method and Description |
---|---|
static TextEncryptor |
noOpText()
Creates a text encryptor that performs no encryption.
|
static TextEncryptor |
queryableText(CharSequence password,
CharSequence salt)
Creates an encryptor for queryable text strings that uses standard password-based encryption.
|
static BytesEncryptor |
standard(CharSequence password,
CharSequence salt)
Creates a standard password-based bytes encryptor using 256 bit AES encryption.
|
static TextEncryptor |
text(CharSequence password,
CharSequence salt)
Creates a text encryptor that uses standard password-based encryption.
|
public static BytesEncryptor standard(CharSequence password, CharSequence salt)
password
- the password used to generate the encryptor's secret key; should not be sharedsalt
- a hex-encoded, random, site-global salt value to use to generate the keypublic static TextEncryptor text(CharSequence password, CharSequence salt)
password
- the password used to generate the encryptor's secret key; should not be sharedpublic static TextEncryptor queryableText(CharSequence password, CharSequence salt)
password
- the password used to generate the encryptor's secret key; should not be sharedsalt
- a hex-encoded, random, site-global salt value to use to generate the secret keypublic static TextEncryptor noOpText()