Imported from https://github.com/kaichoulyc/tgs-salts