
1 Apr
2007
1 Apr
'07
7:42 p.m.
I've been spending a lot of time trying to find a clean way to convert from a String to a Word64 for the Crypto library. Specifically, we're trying to encrypt the strings with Blowfish. The type for the encrypt function is: encrypt :: (Integral a) => a -> Word64 -> Word64 I assume I would want something like: toWord64s :: String -> [Word64] toWord64s = .... myEncrypt string = map (Blowfish.encrypt myKey) (toWord64s string) I would have to imagine that encrypting strings is a fairly common thing to do, so a conversion should be trivial, but I can't seem to find anything on it. I feel like I must be missing something rather obvious here. Am I? Thanks, Ian
6671
Age (days ago)
6671
Last active (days ago)
0 comments
1 participants
participants (1)
-
Ian Sefferman