Fix IndexOutOfRangeException for resource encryption
Fix incompatibility between resource protection and compressor packer

Fix #96, #95, #60