0
How to get iv and cipherText in decryptAESCTR() from iv used in encryptAESCTR()
I wirte decryptAESCTR() a little bit but I don't know well how to get the variables iv and cipherText by using FileInputStream if someone know to get two variables through Fileinputstream. Please teach and tell me about that. I put my code as bleow: https://code.sololearn.com/cBGjoAgvnJ1B/?ref=app
5 odpowiedzi
+ 1
Take a look at this minimal example of using FileInputStream to .read() bytes from a file.
https://code.sololearn.com/c0yTP2ge9FeE/?ref=app
+ 1
SeungSeung장구 Just make your initVector[] as large as needed.
0
Fermi but how to store the data into byte initVector[] as much as I want?
0
notice byte in java can stores values only from -127 to 127
0
zemiak Iv is just 16bytes and then the rest of them is under thr 127 bytes. I hope to know how to store cipherText.enc into the byte[].