support/script/scancpan: generate hash file