Convert byte array to integer with lower and upper bound
I have a method that pseudo-randomly encrypts a byte array. I would like to convert the encrypted byte-array to a C# int (4 bytes), while observing a user-specified lower and upper bound.
What is the most secure and performant way of achieving this?
Aucun commentaire:
Enregistrer un commentaire