func StudyHASH(str string, hashType string) string {
var hash hash.Hash
switch hashType {
case "md5":
hash = md5.New()
case "sha256":
hash = sha256.New()
case "sha512":
sha512.New()
case "sha1":
sha1.New()
}
hash.Write([]byte(str))
hashByte := hash.Sum([]byte(nil))
hashStr := hex.EncodeToString(hashByte)
return hashStr
}