Copyright | (c) Soostone Inc 2020 |
---|---|
License | AllRightsReserved |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- encrypt :: ByteString -> ByteString
- oAuthChallenge :: IO ByteString
- eitherRNG :: Int -> IO ByteString
- uriToText :: URI -> Text
- displayCredentials :: String -> IO ()
- prettyPrint :: Value -> IO ()
Documentation
encrypt :: ByteString -> ByteString #
create a google oAuth code-challenge. For detail see https://developers.google.com/identity/protocols/oauth2/native-app#step1-code-verifier
oAuthChallenge :: IO ByteString #
generates a random valid string
:: Int | number of bytes for the generated bytestring |
-> IO ByteString |
get some random data. The intent is to create a valid encrypted string, used by google oauth backend.
displayCredentials :: String -> IO () #
prettyPrint :: Value -> IO () #