Txt

Byte sized tech know-how.

  • Home
  • About

Tag Archives: rand

05 Oct

Generate Password

Command to generate a random password…


openssl rand -base64 6
admin Posted in Command Line bash, command, password, rand, random, ssl Leave a comment
20 Oct

Random Password in PHP

A simple way to create a random password in PHP


$password = substr(md5(time()), 0, rand(4,8));
admin Posted in PHP Code, password, PHP, rand, random, string 4 Comments

Post navigation

Categories

  • Code
  • Command Line
  • Configuration
  • CSS
  • HTML
  • internet
  • JavaScript
  • Linux
  • Mobile
  • Perl
  • PHP
  • Python
  • Ruby
  • Uncategorized

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Fruitful theme by fruitfulcode Powered by: WordPress
↑