UNPKG

@cdottori/ecdsa-node

Version:

fast openSSL-compatible implementation of the Elliptic Curve Digital Signature Algorithm (ECDSA)

7 lines (6 loc) 202 B
exports.decode = function (string) { return Buffer.from(string, "base64").toString("binary"); }; exports.encode = function (string) { return Buffer.from(string, "binary").toString("base64"); };