does this encryption library use pipe characters? I'm storing the key in an array with the corresponding UserID value, and delimiting them with a pipe character. If the library generates keys with pipe characters, those keys will get mangled when I split the string later.
Asked
Active
Viewed 296 times
0
-
What encryption library and what programming/scripting language you are talking about? – Robert Dec 10 '10 at 13:28
2 Answers
4
The key should be random, and so could contain pipe characters incidentally. You should represent it as hexadecimal or base-64 in your pipe-delimited string to avoid unpredictable results.

Dave Cluderay
- 7,268
- 1
- 29
- 28
1
I don't know of a library named Rijndael. I know of a symmetric cipher named Rijndael (now AES), but the cipher encrypts stuff---it doesn't generate keys.
If you mean the cipher, your question doesn't apply. If you mean a particular piece of code (i.e. a library), a link would be useful so we can all see which particular Rijndael-implementing library you're talking about.
That being said, you can always recode any data to, say, base64, or hex, or binary, or whatever you prefer, that doesn't have a pipe character.

Jonas Kölker
- 7,680
- 3
- 44
- 51