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:
parent
09fe0caf48
commit
8a681ad195
@ -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
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user