How to generate a secure random alphanumeric string in Java efficiently?

后端 未结 9 1491
半阙折子戏
半阙折子戏 2021-01-01 12:24

How do you generate a secure random (or pseudo-random) alphanumeric string in Java efficiently?

9条回答
  •  臣服心动
    2021-01-01 12:58

    Generate a public key for an open-key encryption algorithm and convert the byte sequence to string via Base64 algorithm.

提交回复
热议问题