Examples of toHex()


Examples of br.com.gmartins.simbler.instructions.value.Value.toHex()

                builder.append("<br>");
                builder.append("<b>Binário:</b> ").append(value.toBinary());
                builder.append("<br>");
                builder.append("<b>Decimal:</b> ").append(value.toDecimal());
                builder.append("<br>");
                builder.append("<b>Hexadecimal:</b> ").append(value.toHex());
                builder.append("</HTML>");
            }

            if (isMemoryDealer()) {
                Instruction dest = getInstructionAt(instruction.getValue());
View Full Code Here

Examples of br.com.gmartins.simbler.instructions.value.Value.toHex()

                    builder.append("<br>");
                    builder.append("<b>Binário:</b> ").append(value.toBinary());
                    builder.append("<br>");
                    builder.append("<b>Decimal:</b> ").append(value.toDecimal());
                    builder.append("<br>");
                    builder.append("<b>Hexadecimal:</b> ").append(value.toHex());
                    builder.append("</HTML>");
                    builder.append("</HTML>");
                    return builder;
                }
View Full Code Here

Examples of com.fathomdb.hash.Md5Hash.toHex()

    for (X509Certificate cert : chain) {
      CertificateInfo certificateInfo = new CertificateInfo();

      certificateInfo.setSubjectDN(Certificates.getSubject(cert));
      Md5Hash hash = OpenSshUtils.getSignature(cert.getPublicKey());
      certificateInfo.setPublicKeyHash(hash.toHex());

      byte[] data = cert.getPublicKey().getEncoded();
      certificateInfo.setPublicKey(Hex.toHex(data));

      certificates.add(certificateInfo);
View Full Code Here

Examples of com.simulity.api.hubb.ByteString.toHex()

                                    "0000000000",
                                    "0",
                                    "0",
                                    requestParameters.get("msisdn")[0]);
                           
                            String toHex = bs.toHex();
                           
                            toHex = toHex.replace("6E756C6C", "");
                           
                            String transmit = "0A010000" +
                                    ((toHex.length() / 2 < 0x0F) ? "0" + Integer.toHexString(toHex.length() / 2) : Integer.toHexString(toHex.length() / 2)) + toHex;
View Full Code Here

Examples of com.trolltech.qt.core.QByteArray.toHex()

          else
            createTextNode("PublishingAscending", "false");
        }
        QByteArray b = conn.getNotebookTable().getIconAsByteArray(notebooks.get(i).getGuid());
        if (b != null)
          createBinaryNode("Icon", b.toHex().toString());
        if (notebooks.get(i).getStack() != null && !notebooks.get(i).getStack().trim().equals(""))
          createTextNode("Stack", notebooks.get(i).getStack());
        writer.writeEndElement()
      }
    }
View Full Code Here

Examples of org.apache.shiro.crypto.hash.Md5Hash.toHex()

        this.fields = fields;
        totalHits = response.getHits().totalHits();
        scrollId = response.getScrollId();

        final Md5Hash md5Hash = new Md5Hash(getOriginalQuery());
        queryHash = md5Hash.toHex();

        LOG.debug("[{}] Starting scroll request for query {}", queryHash, getOriginalQuery());
    }

    public ScrollChunk nextChunk() {
View Full Code Here

Examples of org.apache.shiro.crypto.hash.Sha256Hash.toHex()

            conn = ds.getConnection();
            sql = conn.createStatement();
            sql.executeUpdate("create table users (username varchar(20), password varchar(20))");
            Sha256Hash sha256Hash = salted ? new Sha256Hash(plainTextPassword, salt) :
                new Sha256Hash(plainTextPassword);
            String password = sha256Hash.toHex();
            sql.executeUpdate("insert into users values ('" + username + "', '" + password + "')");
        } catch (SQLException ex) {
            Assert.fail("Exception creating test database");
        } finally {
            JdbcUtils.closeStatement(sql);
View Full Code Here

Examples of org.apache.shiro.crypto.hash.Sha256Hash.toHex()

            conn = ds.getConnection();
            sql = conn.createStatement();
            sql.executeUpdate(
                    "create table users (username varchar(20), password varchar(20), password_salt varchar(20))");
            Sha256Hash sha256Hash = new Sha256Hash(plainTextPassword, salt);
            String password = sha256Hash.toHex();
            sql.executeUpdate("insert into users values ('" + username + "', '" + password + "', '" + salt + "')");
        } catch (SQLException ex) {
            Assert.fail("Exception creating test database");
        } finally {
            JdbcUtils.closeStatement(sql);
View Full Code Here

Examples of org.apache.shiro.crypto.hash.SimpleHash.toHex()

        String salt1 = username;
        String salt2 = new SecureRandomNumberGenerator().nextBytes().toHex();
        int hashIterations = 2;

        SimpleHash hash = new SimpleHash(algorithmName, password, salt1 + salt2, hashIterations);
        String encodedPassword = hash.toHex();
        System.out.println(salt2);
        System.out.println(encodedPassword);
    }

    @Test
View Full Code Here

Examples of org.apache.shiro.crypto.hash.SimpleHash.toHex()

        return salt;
    }

    public String hash(String password, byte[] salt) {
        SimpleHash hash = new SimpleHash(config.getHashAlgorithmName(), password, salt);
        return hash.toHex();
    }

}
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.