Skip to content

Commit

Permalink
OAK-11399: Remove usage of Guava io.BaseEncoding
Browse files Browse the repository at this point in the history
  • Loading branch information
reschke committed Jan 17, 2025
1 parent 2a8aa92 commit 2edbeb5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ public String getReference(@NotNull String blobId) {
Mac mac = Mac.getInstance(ALGORITHM);
mac.init(new SecretKeySpec(getReferenceKey(), ALGORITHM));
byte[] hash = mac.doFinal(blobId.getBytes("UTF-8"));
return ':' + BASE32ENCODER.encodeToString(hash);
return blobId + ':' + BASE32ENCODER.encodeToString(hash);
} catch (NoSuchAlgorithmException e) {
throw new IllegalStateException(e);
} catch (InvalidKeyException e) {
Expand Down

0 comments on commit 2edbeb5

Please sign in to comment.