Skip to content

Commit

Permalink
openssl objects to missing padding
Browse files Browse the repository at this point in the history
  • Loading branch information
cboettig authored Jan 21, 2025
1 parent 6a5d9f0 commit 95d70b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/format_identifiers.R
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ from_ni <- function(x){

hash <- gsub(paste0("^ni:///([a-zA-Z0-9]+);", base64_regex), "\\2", x)
algo <- gsub(paste0("^ni:///", algo_regex, ";", hash), "\\1", x)
hex <- paste0(openssl::base64_decode(hash), collapse = "")
hex <- paste0(jsonlite::base64_dec((hash), collapse = "")
paste0("hash://", algo, "/", hex)

}
Expand Down

0 comments on commit 95d70b4

Please sign in to comment.