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
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.