On 03/27/2010 06:11 AM, Oscar wrote: > hey everybody! i am currently working on a java program capable of > reading data encrypted following the luks standard. I have read hundreds > of pages of documentation but i am still a little lost on how should i > begin to attack the problem. My first question is, how can i retrieve > the luks "header" from a partition using java? is it a fixed size header > starting from sector 0? No, it is not. Only visible header is fixed size (starting on first sector), but keyslot areas size depends on key size. Read http://code.google.com/p/cryptsetup/wiki/Specification Not sure what are you trying to do, but if it is going to be used Linux, please use libcryptsetup shared lirary (from cryptsetup 1.1). (So it is just about java bindings to library.) There is already some Python bindigs for the cryptsetup btw. If you plan to use it on Windows, check also FreeOTFE project. Milan _______________________________________________ dm-crypt mailing list dm-crypt@xxxxxxxx http://www.saout.de/mailman/listinfo/dm-crypt