unfortunately, i don't believe access 2007+ security is supported at this
time. feel free to file a feature request. (by the way, you don't need a
password for an Access 2000 database).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I can open a password protected Access 2000 mdb with the following code
fragment.
Database.open(new File("my.mdb"), false, false, null, null, new
CryptCodecProvider("myPassword"));
However when I tried to open a password encrypted Access 2010 accdb I get the
following exception,
java.io.IOException: Unrecognized map type: -100
at com.healthmarketscience.jackcess.UsageMap.initHandler(UsageMap.java:145)
at com.healthmarketscience.jackcess.UsageMap.read(UsageMap.java:133)
at
com.healthmarketscience.jackcess.PageChannel.initialize(PageChannel.java:103)
at com.healthmarketscience.jackcess.Database.<init>(Database.java:762)
at com.healthmarketscience.jackcess.Database.open(Database.java:587)
...
unfortunately, i don't believe access 2007+ security is supported at this
time. feel free to file a feature request. (by the way, you don't need a
password for an Access 2000 database).
Any chance you could file a feature request and include a sample encrypted db
and password?
Note that as of version 1.0.4, jackess encrypt supports office 2007/2010 encryption.