java encryption length test and moving files