Java Utililty Methods Encrypt String

List of utility methods to do Encrypt String

Description

The list of methods to do Encrypt String are organized into topic(s).

Method

Stringencrypt(String s)
encrypt
return encrypt(s, Cryptkey);
byte[]encrypt(String str)
encrypt
if (str == null) {
    return null;
if (str.length() == 0) {
    return NO_BYTES;
byte[] bytes = toUTF(str);
byte[] result = new byte[bytes.length + 1];
...
Stringencrypt(String value)
encrypt
int ra = RANDOM.nextInt(19);
int rb;
do {
    rb = RANDOM.nextInt(19);
} while (rb == ra || rb == 0);
ra = 7;
rb = 17;
String ca = CIPHER[ra];
...
StringencryptString(String message)
encrypt String
return base64encode(xorMessage(message, ENCRYPT_KEY));