decipher.setAutoPadding([autoPadding])


  • autoPadding <boolean> 默认值: true
  • 返回: <Decipher> 相同的 Decipher 对象以支持方法链。

当数据在没有标准块填充的情况下被加密时,调用 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.】

关闭自动填充仅在输入数据的长度是密码块大小的倍数时才有效。

【Turning auto padding off will only work if the input data's length is a multiple of the ciphers block size.】

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

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