mirror of
https://github.com/redelmann/scat
synced 2025-01-26 14:04:20 +01:00
Added the paranoiac
schema.
This commit is contained in:
parent
09fe0caf48
commit
8a681ad195
@ -105,6 +105,9 @@ getSchema = do
|
|||||||
-- Alphanumeric.
|
-- Alphanumeric.
|
||||||
"alpha" -> return alphanumeric
|
"alpha" -> return alphanumeric
|
||||||
|
|
||||||
|
-- Paranoiac
|
||||||
|
"parano" -> return paranoiac
|
||||||
|
|
||||||
-- PIN.
|
-- PIN.
|
||||||
'p' : 'i' : 'n' : xs | [(n, "")] <- reads xs -> return $ pin n
|
'p' : 'i' : 'n' : xs | [(n, "")] <- reads xs -> return $ pin n
|
||||||
|
|
||||||
|
@ -10,6 +10,7 @@ module Scat.Schemas
|
|||||||
-- * Passwords
|
-- * Passwords
|
||||||
, safe
|
, safe
|
||||||
, alphanumeric
|
, alphanumeric
|
||||||
|
, paranoiac
|
||||||
|
|
||||||
-- * PIN
|
-- * PIN
|
||||||
, pin
|
, pin
|
||||||
@ -33,6 +34,10 @@ import Paths_scat
|
|||||||
-- | Password builder.
|
-- | Password builder.
|
||||||
type Schema = Builder String
|
type Schema = Builder String
|
||||||
|
|
||||||
|
-- | Paranoiac mode, entropy of 512 bits.
|
||||||
|
paranoiac :: Schema
|
||||||
|
paranoiac = replicateM 78 ascii
|
||||||
|
|
||||||
{- | Generates a password of length 18,
|
{- | Generates a password of length 18,
|
||||||
containing upper case letters,
|
containing upper case letters,
|
||||||
lower case letters,
|
lower case letters,
|
||||||
|
Loading…
Reference in New Issue
Block a user