module

Crypto::Padding

Class methods

pkcs7(buffer : Indexable(UInt8), block_size : Int)

Performs padding on the given plaintext to ensure that it is a multiple of the given block_size value in the parameter. Uses the PKCS7 standard for performing padding.

Source