We are migrating a server project coded using NodeJs to one coded in Java. I'm not very into the cryptography thing but I need to "translate" the following instruction to Java.
crypto.randomBytes(32).toString('hex');
Basically in the node js project they were using the js library crypto to generate a unique key, and I would need to do the same, no more, no less, in java. Anyone with crypto knowledge that can help here? What would be the equivalent in Java?
Thanks