elocrypt-2.1.0: Generate easy-to-remember, hard-to-guess passwords

Safe HaskellSafe
LanguageHaskell2010

Data.Elocrypt.Utils

Synopsis

Documentation

numeralConversions :: Map Char [Char] Source #

A mapping from letters to numbers that look like them

symbolConversions :: Map Char [Char] Source #

A mapping from letters to symbols that look like them

toDigit :: Char -> String Source #

Map a letter to one or more digits, if possible

toSymbol :: Char -> String Source #

Map a letter to one or more symbols, if possible

isSymbol :: Char -> Bool Source #

Selects special characters

updateR :: MonadRandom m => (Char -> m Char) -> Rational -> String -> m String Source #

Randomly update characters at the specified probability

update1 Source #

Arguments

:: Monad m 
=> (Char -> m Char)

Update function

-> String

the string to update

-> Int

the position to update

-> m String 

Update character at position pos