Configuring Random Number Generator Secure Seeding
- Last Updated: July 28, 2016
- 2 minute read
- DataDirect Connectors
- JDBC
- IBM Db2 5.1
- MySQL 5.1
- Progress OpenEdge 5.1
- SAP Sybase 5.1
- Documentation
DB2 uses a random number generator for secure seeding of data encrypted with
the Advanced Encryption Standard (AES) algorithm. If you have enabled AES encryption
with the AuthenticationMethod connection property, you should consider how best to
implement secure seeding in your environment. The driver supports random number
generator implementations by way of the RandomGenerator and SecureRandomAlgorithm
connection properties. The RandomGenerator connection property allows you to specify
the type of random number generator the database uses for secure seeding with JDK 7
or higher. If you select a cryptographically strong number generation algorithm, and
if you are using JDK 8 or higher, you can then use the SecureRandomAlgorithm
connection property to specify any number generation algorithm included in the JDK
packaged with your system.
Note: When establishing a connection with
a connection string, RandomGenerator and SecureRandomAlgorithm should precede
the User and Password connection properties in the connection URL. When using a
data source connection, RandomGenerator and SecureRandomAlgorithm should be set
before making calls to
setUser(),
setPassword(), or
setNewPassword().The following steps outline how to configure a random number generator for secure seeding.