vendredi 13 septembre 2019

Is there a way to generate cryptographically strong random numbers in Go similar to Python's `secrets` module? [duplicate]

Using python you could use the secrets module like this.

    import secrets
    print(secrets.token_hex(16))

    >>> a67c39a93429f53e5c2a711b0c8455b6

Is there a similar way to do this using Go?




Aucun commentaire:

Enregistrer un commentaire