Examples of encrypt()


Examples of org.primefaces.util.StringEncrypter.encrypt()

       
        try {
            Resource resource = context.getApplication().getResourceHandler().createResource("dynamiccontent.properties", "primefaces", "image/png");
            String resourcePath = resource.getRequestPath();
            StringEncrypter encrypter = RequestContext.getCurrentInstance().getEncrypter();
            String rid = encrypter.encrypt((String) barcode.getValue());
            StringBuilder builder = SharedStringBuilder.get(context, SB_BUILD);

            src = builder.append(resourcePath).append("&").append(Constants.DYNAMIC_CONTENT_PARAM).append("=").append(URLEncoder.encode(rid, "UTF-8"))
                    .append("&").append(Constants.DYNAMIC_CONTENT_TYPE_PARAM).append("=").append(handlerType)
                    .append("&gen=").append(type)
View Full Code Here

Examples of org.rat.free.security.makifx.base.KeySecretData.encrypt()

                    KeySecretData ksd = new KeySecretData();
                    ksd.setKey(getUTF8Bytes(secret_key));
                    ksd.setProperties(new HashMap(readable.getProperties()));

                    ksd.encrypt(master_username, maki_file_key);

                    this.GEN_KEY = ksd.getKey();

                    enc_map = Login.firstEncyptedMap();
View Full Code Here

Examples of org.sf.bee.commons.cryptograph.BeeDesEncrypter.encrypt()

    }

    private String encrypt(final String value) {
        if (_encoded) {
            final BeeDesEncrypter encrypter = new BeeDesEncrypter(SECRET);
            final String result = encrypter.encrypt(value);
            return result;
        }
        return value;
    }
View Full Code Here

Examples of org.slim3.util.Cipher.encrypt()

     * @return the encrypted text
     * @since 1.0.6
     */
    protected String encrypt(String text) {
        Cipher c = CipherFactory.getFactory().createCipher();
        return c.encrypt(text);
    }

    /**
     * Encrypt the text.
     *
 
View Full Code Here

Examples of org.smslib.crypto.KeyManager.encrypt()

  public OutboundEncryptedMessage(String myRecipient, byte[] dataBytes) throws SMSLibException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException, NoSuchPaddingException, NoSuchAlgorithmException
  {
    setRecipient(myRecipient);
    KeyManager km = KeyManager.getInstance();
    setDataBytes(km.encrypt(myRecipient, dataBytes));
  }
}
View Full Code Here

Examples of org.wso2.securevault.EncryptionProvider.encrypt()

                }
            }

            PrintStream out = System.out;
            if (isEncrypt) {
                out.println("Output : " + new String(encryptionProvider.encrypt(source.getBytes())));
            } else {
                out.println("Output : " + new String(decryptionProvider.decrypt(source.getBytes())));
            }

        } catch (ParseException e) {
View Full Code Here

Examples of uk.co.thomasc.steamkit.util.crypto.RSACrypto.encrypt()

    final byte[] sessionKey = CryptoHelper.GenerateRandomBlock(32);

    // rsa encrypt it with the public key for the universe we're on
    byte[] cryptedSessionKey = null;
    final RSACrypto rsa = new RSACrypto(KeyDictionary.getPublicKey(steamClient.getConnectedUniverse()));
    cryptedSessionKey = rsa.encrypt(sessionKey);

    final byte[] loginKey = new byte[20];
    System.arraycopy(callback.getLoginKey().getBytes(), 0, loginKey, 0, callback.getLoginKey().length());

    // aes encrypt the loginkey with our session key
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.