Skip to content

weixin-ts / cdn/src / aesEcbPaddedSize

Function: aesEcbPaddedSize() ​

aesEcbPaddedSize(rawSize): number

Defined in: cdn/src/aes-ecb.ts:19

Calculate the padded file size after AES-128-ECB encryption with PKCS7 padding.

Parameters ​

rawSize ​

number

Original plaintext size in bytes

Returns ​

number

Ciphertext size (always a multiple of 16)

Released under the MIT License.