Re:Text Shredder: Peer-to-peer message-based encryption utility
by danbruc on Friday March 14, 2014 @03:15PM
(#7401099)
One thing I would really suggest is to get rid of all this conversions between strings and byte arrays, this adds unnecessarily complexity to the code. Convert messages and passwords to byte arrays as soon as you get them, preferably using a Unicode encoding to support foreign languages, and then only work with byte arrays for everything until you finally want to output the encrypted message where you probably want to Base64 encode it. Especially I did not understand why you have these ugly methods in ByteHelpers when you already have Encoding.GetString() and Encoding.GetBytes() and you are using them in some places.
[ Parent
| on HN ]
There are no comments on this comment yet.