pcibraro / hawknet

Hawk protocol implementation for .NET
MIT License
114 stars 35 forks source link

utf8 encoding vs ascii #8

Closed TeigeJDavidson closed 11 years ago

TeigeJDavidson commented 11 years ago

compared to java implementation there are places where ascii encoding is being used for encoding message and key. The java implementation has 100% utf encoding for key and message text

var messageBytes = Encoding.UTF8.GetBytes(normalized); vs var messageBytes = Encoding.ASCII.GetBytes(normalized);

pcibraro commented 11 years ago

Let me take a look. I believe I initially used ASCII as that node.js implementation was using that one.