add used algorithm to the unencrypted header in file and make a guess-method for detecting it. should work