I would like to implement licensing in my application and need some help here.
An example application has the following:
// REPLACE WITH YOUR OWN SALT , THIS IS FROM EXAMPLE private static final byte[] SALT = new byte[]{ -46, 65, 30, -128, -103, -57, 74, -64, 51, 88, -95, -45, 77, -117, -36, -113, -11, 32, -64, 89 };
I would like to know if I am simply changing numbers to a random number or do I need to generate it using SecureRandom ?
I came across this code , do I need to set the SALT variable from the clipboard?
Also, should SALT be different for each device or the same?
source share