Ruby-RC4
Ruby-RC4 copied to clipboard
FIX: support utf-8 string
test fails, please wait for me fixing it.
I'm not totally across the RC4 algorithm, but is this definitely what should be done?
If anything, I'd have guessed force_encoding('binary'). unpack('C*') might be the best way to ensure comparability with any input encoding.
If anything, I'd have guessed force_encoding('binary'). unpack('C*') might be the best way to ensure comparability with any input encoding.
I'll try it when I'm free. Thank you for suggestion.
Good luck!