Hello i 正在寻找免费拷贝或一些易于加密的密码,以便加密和加密档案。 应在从下游下载档案时进行加密:
while ((bufferLength = inputStream.read(buffer)) > 0) {
/*
* Writes bufferLength characters starting at 0 in buffer to the target
*
* buffer the non-null character array to write. 0 the index
* of the first character in buffer to write. bufferLength the maximum
* number of characters to write.
*/
fileOutput.write(buffer, 0, bufferLength);
}
And decrypt when need to open with pdf reader. Maybe there are some info, code or free Api for this ? Someone had done something like this ?
I found myself some code and api. But nothing good for now.
感谢。