1
0
mirror of https://github.com/redelmann/scat synced 2025-01-25 05:24:20 +01:00

Added the paranoiac schema.

This commit is contained in:
Romain Edelmann 2013-08-09 20:15:48 +02:00
parent 09fe0caf48
commit 8a681ad195
2 changed files with 8 additions and 0 deletions

View File

@ -105,6 +105,9 @@ getSchema = do
-- Alphanumeric.
"alpha" -> return alphanumeric
-- Paranoiac
"parano" -> return paranoiac
-- PIN.
'p' : 'i' : 'n' : xs | [(n, "")] <- reads xs -> return $ pin n

View File

@ -10,6 +10,7 @@ module Scat.Schemas
-- * Passwords
, safe
, alphanumeric
, paranoiac
-- * PIN
, pin
@ -33,6 +34,10 @@ import Paths_scat
-- | Password builder.
type Schema = Builder String
-- | Paranoiac mode, entropy of 512 bits.
paranoiac :: Schema
paranoiac = replicateM 78 ascii
{- | Generates a password of length 18,
containing upper case letters,
lower case letters,