Examples of encrypt()


Examples of cx.fbn.nevernote.utilities.AESEncrypter.encrypt()

          setMessage(tr("Invalid authorization token received."));
          return;
        }
        aes.setString(window.response);
        try {
        aes.encrypt(new FileOutputStream(Global.getFileManager().getHomeDirFile("oauth.txt")));
      } catch (FileNotFoundException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      }
        syncRunner.authToken = tokenizer.oauth_token;
View Full Code Here

Examples of dbfit.util.crypto.CryptoService.encrypt()

        CryptoService crypto = CryptoTestsConfig.getCryptoService(ksRoot);

        PropertiesLoader loader = new PropertiesLoader(crypto);

        Map<String, String> props = loader.loadFromList(
            PropertiesTestsSetUp.prepareEncryptedSettings(crypto.encrypt(DB_PASSWORD)));

        assertEquals(DB_PASSWORD, props.get("password"));
    }
    //----- End of whole list loading tests -/
View Full Code Here

Examples of de.innovationgate.utils.DESEncrypter.encrypt()

       
        // encrypt desKey with rsaPubKey
        byte[] desKey = ecipher.doFinal(desEncrypter.getKey().getEncoded());       
       
        // encrypt data with des key
        String desData = desEncrypter.encrypt(data);
       
        return new RSAEncryptedData(Base64.encode(desKey), desData);
    }
   
    /**
 
View Full Code Here

Examples of de.iritgo.aktera.crypto.Encryptor.encrypt()

      {
        Encryptor oneEncryptor = (Encryptor) req.getService(Encryptor.ROLE, service);

        if (method.equals("encrypt"))
        {
          current = new String(oneEncryptor.encrypt(current.getBytes("UTF-8")), "UTF-8");
        }
        else if (method.equals("hash"))
        {
          current = new String(oneEncryptor.hash(current.getBytes("UTF-8")), "UTF-8");
        }
View Full Code Here

Examples of dubious.sub.goobi.helper.encryption.DesEncrypter.encrypt()

    try {
      DesEncrypter encrypter = new DesEncrypter();
      BenutzerDAO dao = new BenutzerDAO();
      List<Benutzer> myBenutzer = dao.search("from Benutzer");
      for (Benutzer ben : myBenutzer) {
        String passencrypted = encrypter.encrypt(ben.getPasswort());
        ben.setPasswort(passencrypted);
        dao.save(ben);
      }
      Helper.setMeldung(null, "", "passwords successful ciphered");
    } catch (Exception e) {
View Full Code Here

Examples of iaik.pkcs.pkcs8.EncryptedPrivateKeyInfo.encrypt()

      /* encrypt the key and save the cert */

      EncryptedPrivateKeyInfo epki = new EncryptedPrivateKeyInfo(
        (PrivateKeyInfo)kp.getPrivate());
      epki.encrypt(getPassword("Certificate password"),
        AlgorithmID.pbeWithMD5AndDES_CBC, null);
      new KeyAndCertificate(epki, chain).saveTo(args[0], ASN1.PEM);
  } catch (Exception e) {
      System.out.println("OOPS: " + e);
      e.printStackTrace();
View Full Code Here

Examples of jcifs.util.DES.encrypt()

    byte[] output1 = new byte[8];
    byte[] output2 = new byte[8];

    k3.encrypt(input, output1);
    k4.encrypt(output1, output2);

    return output2;
  }

  protected byte[] computeSessionKey(
View Full Code Here

Examples of mycrypto.Encrypter.encrypt()

                    } else {
                        decryprtString(cipherTextArea, plainTextArea, keyFile, encrypter);
                    }
                } else {
                    if (source == btnEncrypt) {
                        encrypter.encrypt(inputFile, outputFile, keyFile);
                    } else {
                        encrypter.decrypt(inputFile, outputFile, keyFile);
                    }
                }
View Full Code Here

Examples of net.ex337.scriptus.config.ScriptusConfig.encrypt()

     
      String k = c.getLatestKeyId();
     
      assertEquals("latest key chosen", "999999999999", k);
     
      byte[] ct = c.encrypt(s, k);
     
      String pt = c.decrypt(ct, k);
     
      assertEquals("encrypt-decrypt OK", s, pt);
   
View Full Code Here

Examples of net.laubenberger.bogatyr.service.crypto.CryptoSymmetric.encrypt()

          try {
            final CryptoSymmetricAlgo algo = (CryptoSymmetricAlgo) cbCodecs.getSelectedItem();
            final CryptoSymmetric crypto = new CryptoSymmetricImpl(algo);
            final SecretKey key = crypto.generateKey(new String(password1.getPassword())
                .getBytes(Constants.ENCODING_DEFAULT));
            crypto.encrypt(scrambler.getModuleData().getFile(KEY_SCRAMBLE_INPUT), scrambler.getModuleData()
                .getFile(KEY_SCRAMBLE_OUTPUT), key);
            scrambler.getModuleData().addValue(KEY_SCRAMBLE_ALGO, algo);
//          } catch (IOException ex) {
//            log.error("Could not scramble file", ex); //$NON-NLS-1$
//            scrambler
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.