Answer the question
In order to leave comments, you need to log in
How to convert large number to byte?
I do encryption using bit shifts in a byte. But if a byte is assigned a value greater than 127, it starts to lose data. How can I correctly convert a large number into bytes without losing data or so that it can be restored later?
Answer the question
In order to leave comments, you need to log in
Or just use byte[]
Even with an example, you can easily convert back
https://www.tutorialspoint.com/java/math/bigintege...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question