I use a block cipher algorithm for encryption that requires the clear data bytes to be in blocks of 8 bytes, so I pad the last incomplete block with some characters.
我对需要将明文数据字节放在8字节块的加密使用块密码算法,所以我用一些字符填充最后一个不完整的块。
2
I then extract the initialization vector (IV) into a byte array, block encrypt the clear data, and prefix the IV bytes to the encrypted data bytes.
随后我将初始向量(IV)抽取到字节数组,对明文数据进行块加密,并将iv字节置于加密的数据字节之前。
3
Achieve a clear separation of concerns between architectural building block responsibilities.