@polkadot/util-crypto
Version:
A collection of useful crypto utilities for @polkadot
15 lines (14 loc) • 349 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.base64Trim = void 0;
/**
* @name base64Trim
* @description Trims padding characters
*/
function base64Trim(value) {
while (value.length && value.endsWith('=')) {
value = value.slice(0, -1);
}
return value;
}
exports.base64Trim = base64Trim;
;