Created
December 1, 2017 10:22
-
-
Save deque-blog/fd2cc916721d49870a2100100872366e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
encryptToken :: (ToJSON t, MonadCypher m) => t -> m String | |
encryptToken = encryptJson . toJson | |
decryptToken :: (FromJSON t, MonadCypher m) => String -> m (Maybe t) | |
decryptToken str = (fmap . fmap) fromJson (decryptJson str) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment