简体   繁体   English

CipherInputStream输入缓冲区大小如何影响应用程序的安全性?

[英]How CipherInputStream input buffer size can affects app's security?

My android application is loading image from CipherInputStream. 我的Android应用程序正在从CipherInputStream加载图像。 It takes too long for BitmapFactory to encode it. BitmapFactory对其进行编码花费的时间太长。 So with the use of reflection I've changed CipherInputStream inputBuffer size from 20 to 32768. After that loading starts working in 5-10 times faster. 因此,通过使用反射,我将CipherInputStream inputBuffer的大小从20更改为32768。此后,加载开始的速度提高了5-10倍。 The question is how this manipulations with CipherInputStream could affect application's security? 问题是对CipherInputStream的这种操作如何影响应用程序的安全性?

It should not affect it at all. 它根本不应该影响它。 Your security is derived from the fact that no-one knows your secret key. 您的安全性源于没有人知道您的密钥这一事实。 The size of the data you happen to decrypt with that key is not relevant. 您碰巧用该密钥解密的数据大小无关紧要。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM