(salt, password string)
| 75 | } |
| 76 | |
| 77 | func hashPassword(salt, password string) string { |
| 78 | sum := sha256.Sum256([]byte(salt + ":" + password)) |
| 79 | return hex.EncodeToString(sum[:]) |
| 80 | } |
| 81 | |
| 82 | func shareModelToInfo(item model.FileShare) response.FileShareInfo { |
| 83 | return response.FileShareInfo{ |