Thanks for the suggestion, will look into it!

On Thursday, May 10, 2018 at 11:30:58 PM UTC-5, Burak Serdar wrote:
>
> It is likely that HashDecoded is "" (line 28) because 
> hex.DecodeString() fails, so password check never fails. 
>
> On Thu, May 10, 2018 at 7:46 PM,  <ati...@mail.ccsf.edu <javascript:>> 
> wrote: 
> > Hello all, 
> > 
> > I am creating a simple licencing system to help licence my own programs 
> and 
> > also to help others via github. I have come across a bug that I don't 
> really 
> > understand and am asking for some advice. 
> > 
> > I will add the client code soon. I also hope to add more advanced 
> features. 
> > 
> > Basically, 
> > 
> > I have a server that listens on a port and hosts a login and register 
> > handler. 
> > 
> > The client will send the username and password 
> > (localhost:8080/login/username-password) to the login handler. 
> > 
> > The server will hash the password and check it against a local file with 
> all 
> > the hashes stored locally on my computer. 
> > 
> > The server will report back if it succeeded or failed. 
> > 
> > When I enter the username and password, it seems as though it doesn't 
> check 
> > the password. I can put any password and it will say success as long as 
> I 
> > have the username right. 
> > 
> > I appreciate all suggestions, even if they don't fix the bug. 
> > 
> > Thanks! 
> > 
> > Code: 
> https://gist.github.com/seriousnerve/1830e77d3e2891b0a5b158c9fb02b37f 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "golang-nuts" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to golang-nuts...@googlegroups.com <javascript:>. 
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to