Skip to content

Commit

Permalink
♻️ Use base64 encoding to decode
Browse files Browse the repository at this point in the history
  • Loading branch information
ishantiw committed Jul 17, 2024
1 parent ba6cfe4 commit 44a47a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/AwskmsUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export async function retrieveAwskmsKeys(awskmsConfigs: KeyConfig[]): Promise<st
throw new Error("result.plaintext wrong type");
}

return "0x" + Buffer.from(data.Plaintext).toString().trim();
return "0x" + Buffer.from(data.Plaintext).toString("base64").trim();
})
);
}

0 comments on commit 44a47a2

Please sign in to comment.