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字节置于加密的数据字节之前。
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字节块的加密使用块密码算法,所以我用一些字符填充最后一个不完整的块。
As the data is arriving almost 'randomly' by means of the reversing of the actual data bytes for the index, the index itself will be extended to accomodate these new values.
由于从索引中数据字节逆序处理来说,数据是几乎“随机”到来的,索引自身扩展以容纳新值。
So unfortunately, we had just ruined roughly 1.4 million bytes worth of data.
不幸的是,我们已经破坏了,140万个字节的数据。
So might have been seen long and that might be correct on some servers, but very, very often the data type called "long" is actually 4 bytes.
你们有可能看到过long,那个在一些服务器上是正确的,但是非常,非常普遍的是,那个叫做“long“的数据类型,只占有4个字节。
应用推荐