ChangeFileEncryptionA tools to change, remove or set a file password of a database without opening it. The encryption algorithm can be changed as well. It can not be used to change a password of a user.
static void execute(String dir, String db, String cipher, char[] decryptPassword, char[] encryptPassword, boolean quiet) throws SQLExceptionChanges the password for a database. The passwords must be supplied as char arrays and are cleaned in this method.Parameters:
dir - the directory (. for the current directory)
db - the database name (null for all databases)
cipher - the cipher (AES, XTEA)
decryptPassword - the decryption password as a char array
encryptPassword - the encryption password as a char array
quiet - don't print progress information
Throws:
SQLException
static void main(String[] args) throws SQLExceptionThe command line interface for this tool. The options must be split into strings like this: "-db", "test",... Options are case sensitive. The following options are supported:
Parameters:
args - the command line arguments
Throws:
SQLException
void run(String[] args) throws SQLException |