Skip to content

Instantly share code, notes, and snippets.

@jeffhandley
Created August 22, 2013 21:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeffhandley/6312875 to your computer and use it in GitHub Desktop.
Save jeffhandley/6312875 to your computer and use it in GitHub Desktop.
Get a new random password
<#
.SYNOPSIS
Returns a random, timestamped, password
#>
# Base64-encode the Guid to add some additional characters
[DateTime]::Now.ToString("MMMddyy") + "!" + [Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes([Guid]::NewGuid().ToString()))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment