1. The following code uses strong entropy for key generation using Java cryptographic extensions

Dos and Don’ts: Implement Strong Algorithms

2. The following code uses strong algorithm using Java cryptographic extensions

Dos and Don’ts: Implement Strong Algorithms (Cont’d)

3. Use Java’s SecureRandom class

  • This code uses Java’s SecureRandom class to generate cryptographically strong pseudo-random number