当前位置: 代码迷 >> 综合 >> What are the ways to generate a password in the Linux environment
  详细解决方案

What are the ways to generate a password in the Linux environment

热度:8   发布时间:2023-12-14 23:49:09.0

??generate a password with /dev/urandom

lwk@qwfys:~$ echo $(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | sed 1q)
20ZLL3gleWryesPzBIoe89KDI2VlPaYc
lwk@qwfys:~$ 

References

  • Setting up a MySQL Docker container
  • Linux系统产生随机数/dev/random 和 /dev/urandom
  相关解决方案