Tabnine Logo
StringUtils.base64Encode
Code IndexAdd Tabnine to your IDE (free)

How to use
base64Encode
method
in
com.kloudtek.util.StringUtils

Best Java code snippets using com.kloudtek.util.StringUtils.base64Encode (Showing top 7 results out of 315)

origin: com.kloudtek.kryptotek/kryptotek-core

public static String saltedB64Digest(byte[] data, DigestAlgorithm alg) {
  return StringUtils.base64Encode(saltedDigest(data, alg));
}
origin: com.kloudtek.kryptotek/kryptotek-core

public String toBase64Encoded() {
  return StringUtils.base64Encode(toByteArray());
}
origin: com.kloudtek.kryptotek/kryptotek-core

public static String saltedB64Digest(String text, DigestAlgorithm alg) {
  return StringUtils.base64Encode(saltedDigest(text, alg));
}
origin: com.kloudtek.kryptotek/kryptotek-core

@NotNull
@Override
public AESKey generateAESKey(AESKeyLen keySize, DHPrivateKey dhPrivateKey, DHPublicKey dhPublicKey) throws InvalidKeyException {
  final byte[] keyData = agreeDHKey(dhPrivateKey, dhPublicKey);
  return generatePBEAESKey(DigestAlgorithm.SHA1, StringUtils.base64Encode(keyData).toCharArray(), 10,
      Arrays.copyOf(keyData, keyData.length > 30 ? 30 : keyData.length), keySize);
}
origin: com.kloudtek.kryptotek/kryptotek-rest-client-httpcomponents

private String sign(byte[] data, SigningKey clientKey, DigestAlgorithm digestAlgorithm) throws InvalidKeyException, SignatureException {
  if (logger.isLoggable(FINE)) {
    logger.fine("Signing REST request - key: " + CryptoUtils.fingerprint(clientKey.getEncoded().getEncodedKey()) + " alg: " + digestAlgorithm + " data: " + CryptoUtils.fingerprint(data));
  }
  return StringUtils.base64Encode(cryptoEngine.sign(clientKey, digestAlgorithm, data));
}
origin: com.kloudtek.ktutils/ktutils

if (objCl.isArray()) {
  if( objCl.getName().equals("[B") ) {
    return StringUtils.base64Encode((byte[]) object);
origin: com.kloudtek.ktutils/ktutils

  return capitalize(resolveVarSub(functionParams,provisioningParams, neverFail));
} else if (functionName.equals("eb64")) {
  return base64Encode(utf8(resolveVarSub(functionParams,provisioningParams, neverFail)));
} else if (functionName.equals("db64")) {
  return utf8(base64Decode(resolveVarSub(functionParams,provisioningParams, neverFail)));
com.kloudtek.utilStringUtilsbase64Encode

Popular methods of StringUtils

  • base64Decode
  • isBlank
  • utf8
    Convert UTF-8 encoded byte arrays to a string
  • isEmpty
  • isNotBlank
  • urlEncode
    URL encode a string using UTF-8
  • base32Decode
  • base32Encode
  • isNotEmpty
  • substituteVariables
    Substitute variables in a string.
  • toHex
  • urlPathEncode
  • toHex,
  • urlPathEncode,
  • capitalize,
  • containsVariableSubstitution,
  • getVarSubFuncPattern,
  • nextChar,
  • resolveVarSub,
  • resolveVarSubFail,
  • splitTwoArgFunction

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getExternalFilesDir (Context)
  • onRequestPermissionsResult (Fragment)
  • requestLocationUpdates (LocationManager)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now