dutchcoders / transfer.sh

Easy and fast file sharing from the command-line.
https://github.com/dutchcoders/transfer.sh
MIT License
15.08k stars 1.54k forks source link

Generate secure token using crypto rand #605

Open rumanzo opened 4 months ago

rumanzo commented 4 months ago

rand package https://pkg.go.dev/math/rand notice us Package rand implements pseudo-random number generators suitable for tasks such as simulation, but it should not be used for security-sensitive work. I purpose use crypto/rand function that's more secure

aspacca commented 4 months ago

hello @rumanzo , thanks for the PR, please see my comment

rumanzo commented 3 months ago

please see my comment in code review