Sud Umm wrote:It works fine only on Windows platform, but not on others.
You can't use SecureRandom in the way you are doing it. SecureRandom does
NOT only use your seed to initialize itself, it also may seek to use other sources of entropy. This should be made clear in the Javadocs for SecureRandom; unfortunately it is not.
You should use a proper Password-based encryption (PBE) scheme.