Skip to content

Commit

Permalink
Merge pull request #48 from cwash/master
Browse files Browse the repository at this point in the history
#47 - Bytes output from digest command do not include algorithm
  • Loading branch information
verhas authored Jan 15, 2019
2 parents 872adc9 + 48fdb87 commit f354727
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/javax0/license3j/CommandLineApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public void digestPublicKey() {
error("There is no public key loaded");
return;
}
final var key = keyPair.getPair().getPublic().getEncoded();
final var key = keyPair.getPublic();
final var md = MessageDigest.getInstance("SHA-512");
final var calculatedDigest = md.digest(key);
final var javaCode = new StringBuilder("--KEY DIGEST START\nbyte [] digest = new byte[] {\n");
Expand Down

0 comments on commit f354727

Please sign in to comment.