Files
common/packages/util-crypto/src/base64/pad.ts
T
2021-01-03 11:20:22 +01:00

7 lines
225 B
TypeScript

// Copyright 2017-2021 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
export function base64Pad (value: string): string {
return value.padEnd(value.length + (value.length % 4), '=');
}