Skip to content

Instantly share code, notes, and snippets.

@kevinl95
Created November 8, 2018 02:47
Show Gist options
  • Save kevinl95/5ea58b99231bf51479aa147736d7a33e to your computer and use it in GitHub Desktop.
Save kevinl95/5ea58b99231bf51479aa147736d7a33e to your computer and use it in GitHub Desktop.
<layout mode="Details">
<match>
PasswordResult (r)
</match>
<content>
<layout-macro id="common:card">
<title>Your New Password</title>
<titleSize>large</titleSize>
<bodyText>{{r.Password}}</bodyText>
</layout-macro>
<div>This password has a length of {{r.length}} words. This password has ~{{r.entropy}} bits of entropy and would therefore take a computer about {{r.years}} years to guess at 1000 guesses per second.</div>
<br>
<div>Inspired by <a href="https://xkcd.com/936/">"Password Strength"</a> by Randall Munroe</div>
</content>
</layout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment