I have an ms access database "abc.accdb" which has a password "abcdabcdef". Tried to open it with Jackcess Encrypt via this command:
packagecom.sample;importjava.io.File;importjava.io.IOException;importcom.healthmarketscience.jackcess.CryptCodecProvider;importcom.healthmarketscience.jackcess.Database;importcom.healthmarketscience.jackcess.DatabaseBuilder;importcom.healthmarketscience.jackcess.Row;importcom.healthmarketscience.jackcess.Table;importcom.healthmarketscience.jackcess.impl.CodecProvider;publicclassTest{publicstaticvoidmain(String[]args)throwsIOException{CryptCodecProvidercryptProvider=newCryptCodecProvider("abcdabcdef");Databasedb=newDatabaseBuilder(newFile("abc.accdb")).setCodecProvider((CodecProvider)cryptProvider).open();Tabletable=db.getTable("Checklist");for(Rowrow:table){System.out.println("Column 'Company' has value: "+row.get("Company"));}}}
How should I open my database file? Is there a workaround for the "key size is outside allowable range" exception? Please keep in mind that I'm not allowed to change the password of the file.
I have an ms access database "abc.accdb" which has a password "abcdabcdef". Tried to open it with Jackcess Encrypt via this command:
I get the following exception:
How should I open my database file? Is there a workaround for the "key size is outside allowable range" exception? Please keep in mind that I'm not allowed to change the password of the file.
Tried asking it at http://stackoverflow.com/questions/20525794/jackcess-encrypt-gives-key-size-is-outside-allowable-range-when-opening-databa without any success.