decipher.setAutoPadding([autoPadding])


  • autoPadding <boolean> 默认: true
  • 返回:Decipheriv 用于方法链的同一个 Decipheriv 实例。

当数据在没有标准块填充的情况下被加密时,调用 decipher.setAutoPadding(false) 将禁用自动填充,以防止 decipher.final() 检查并移除填充。

🌐 When data has been encrypted without standard block padding, calling decipher.setAutoPadding(false) will disable automatic padding to prevent decipher.final() from checking for and removing padding.

对于使用标准块填充的块密码,禁用填充要求输入数据的长度必须是密码块大小的倍数。

🌐 For block ciphers that use standard block padding, disabling it requires the input data's length to be a multiple of the cipher's block size.

decipher.setAutoPadding() 方法必须在 decipher.final() 之前调用。

🌐 The decipher.setAutoPadding() method must be called before decipher.final().