Safe Haskell | None |
---|---|
Language | GHC2021 |
Synopsis
- encrypt :: ByteString -> ByteString
- oAuthChallenge :: IO ByteString
- eitherRNG :: Int -> IO ByteString
Documentation
encrypt :: ByteString -> ByteString #
Creates 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 |
Gets some random data. The intent is to create a valid encrypted string, used by google oauth backend.