Examples of digest()


Examples of com.knowgate.jcifs.util.MD4.digest()

        md4.update(password.getBytes("UnicodeLittleUnmarked"));
        switch (LM_COMPATIBILITY) {
        case 0:
        case 1:
        case 2:
            md4.update(md4.digest());
            md4.digest(dest, offset, 16);
            break;
        case 3:
        case 4:
        case 5:
View Full Code Here

Examples of com.sardak.antform.util.CSVReader.digest()

  /**
   * set selected value
   */
  public void setValue(String value) {
    CSVReader reader = new CSVReader(separator, escapeSequence);
    List valueList = value == null ? new ArrayList() : reader.digest(value, true);
    for (Iterator iterator = buttons.iterator(); iterator.hasNext();) {
      JCheckBox checkBox = (JCheckBox) iterator.next();
      checkBox.setSelected(valueList.contains(checkBox.getText()));
    }
  }
View Full Code Here

Examples of com.securityinnovation.jNeo.digest.sha256.digest()

        bos.close();

        // hash it
        sha256 s = new sha256();
        byte b2[] = new byte[s.getDigestLen()];
        s.digest(b, 0, b.length, b2, 0);
        return b2;
    }

    public static byte m[] = {0x41, 0x42, 0x43};
View Full Code Here

Examples of com.sun.midp.crypto.MessageDigest.digest()

        byte[] tmp = new byte[20];
        try {
            MessageDigest md = MessageDigest.getInstance("SHA-1");
            md.update(data, offset, length);
            md.digest(tmp, 0, tmp.length);
        } catch (GeneralSecurityException e) {
            // algorithm not found - not in this implementation
            throw new RuntimeException(
                "SHA-1 algorithm for MessageDigest not supported");
        }
View Full Code Here

Examples of com.trilead.ssh2.crypto.digest.MD5.digest()

     */
    private int md5(String s) {
        MD5 md5 = new MD5();
        md5.update(s.getBytes());
        byte[] digest = new byte[16];
        md5.digest(digest);

        // 16 bytes -> 4 bytes
        for (int i=0; i<4; i++)
            digest[i] ^= digest[i+4]+digest[i+8]+digest[i+12];
        return (b2i(digest[0])<< 24)|(b2i(digest[1])<<16)|(b2i(digest[2])<< 8)|b2i(digest[3]);
View Full Code Here

Examples of com.volantis.charset.configuration.xml.CharsetDigesterDriver.digest()

     * charset name.  The canononical name is the only one which is
     * used to store encoding information.
     */
    public void initialiseManager() {
        CharsetDigesterDriver dd = new CharsetDigesterDriver();
        Charsets css = dd.digest();
        createdEncodingMap = new HashMap();
        charsetNameAliasMap = new HashMap();
        preloadedEncodingMap = new HashMap();
        unsupportedCharsetNameSet = new HashSet();
        charsetMap = new HashMap();
View Full Code Here

Examples of gnu.crypto.hash.IMessageDigest.digest()

      md.reset();
      md.update(buf, setOffset, setLen);
      md.update(buf, keyOffset, keyLen);

      byte[] digest = md.digest();
      long partitionId = CLBuffer.get_ntohl_intel(digest, 0);

      // Can't use mod directly - mod will give negative numbers. First
      // bitwise-and determines positive/negative correctly, then mod.
      partitionId = (partitionId & 0xFFFF) %
View Full Code Here

Examples of gnu.crypto.hash.MD5.digest()

    final byte[] md5Hash(String p) {
        //ripemd 160 hash
        final MD5 md5 = new MD5();
        final byte[] data = p.getBytes();
        md5.update(data, 0, data.length);
        final byte[] hash = md5.digest();
        return hash;
    }
   

    @Override
View Full Code Here

Examples of gnu.crypto.hash.RipeMD160.digest()

    final byte[] ripemd160Hash(String p) {
        //ripemd 160 hash
        final RipeMD160 ripemd160 = new RipeMD160();
        final byte[] data = p.getBytes();
        ripemd160.update(data, 0, data.length);
        final byte[] hash = ripemd160.digest();
        return hash;
    }
   
    final byte[] md5Hash(String p) {
        //ripemd 160 hash
View Full Code Here

Examples of gnu.java.security.hash.IMessageDigest.digest()

        buffy = Util.trim(A);
        hash.update(buffy, 0, buffy.length);
        buffy = Util.trim(B);
        hash.update(buffy, 0, buffy.length);

        BigInteger u = new BigInteger(1, hash.digest());

        // compute S = ((A * (v ** u)) ** b) % N
        BigInteger S1 = A.multiply(v.modPow(u, N)).modPow(b, N);

        // compute K = H(S) (as of rev 08)
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.