Skip to content

Commit

Permalink
Renomeada e comentada função "quebre"
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustavo Moraes committed May 29, 2016
1 parent 29daec1 commit c696233
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/sequencial/DecifragemMD5Controller.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@ public void setPalavraDescobertaMD5(String newPalavraDescobertaMD5) {

// Métodos

public void iniciaQuebra(String hash) throws NoSuchAlgorithmException {
/**
* Função que inicia o processo de "quebra" da hash MD5 que corresponde
* a alguma palavra de 5 dígitos composta por caracteres alfanuméricos.
* @param hash A hash MD5 o qual deseja descobrir qual palavra a originou.
* @throws NoSuchAlgorithmException
*/
public void quebre(String hash) throws NoSuchAlgorithmException {

setHashMD5Compare(hash);

Expand Down
2 changes: 1 addition & 1 deletion src/sequencial/MD5Sequencial.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ private static long calculaQuebraMD5(String md5Hash) throws NoSuchAlgorithmExcep
//---------------------------------------------------------------------
long T0 = System.currentTimeMillis(); // Tempo inicial (To)

objDecifrador.iniciaQuebra(md5Hash);
objDecifrador.quebre(md5Hash);

long T = System.currentTimeMillis(); // Tempo final (T)
//---------------------------------------------------------------------
Expand Down

0 comments on commit c696233

Please sign in to comment.