Manipulation of Base64Strings
From: Fred Nelson (fred_at_smartybird.com)
Date: 11/30/03
- Next message: Holly Mazerolle: "RE: aspx page is unable to read/write files that are located on a network share"
- Previous message: Wolfgang Kaml: "cannot unfold Namespace System.Security.Cryptography ?"
- Next in thread: Pent: "Re: Manipulation of Base64Strings"
- Reply: Pent: "Re: Manipulation of Base64Strings"
- Reply: Michael Giagnocavo [MVP]: "Re: Manipulation of Base64Strings"
- Reply: Fred Nelson: "Re: Manipulation of Base64Strings"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sun, 30 Nov 2003 13:22:45 -0500
Hi:
I'm developing a Web App that uses a hashing algorithm to produce a string
that is returned with:
convert.tobase64string(final hash value)
When I compare the values I use:
hashvalue = convert.frombase64string(inpassword)
This works fine when I read and write to a textbox on the screen.
I have been advised that I should add a character at the beginning and end
of the string before writing it to a database as SQL server in some cases
will truncate leading or trailing spaces.
I have attempted: hashpass = "*" + hashvalue + "*" - then removing the first
and final values. When I do this I cause a crash as the system determines
that this is not a valid value for the convert, there must be some data type
conversion that occurs when I do this.
I have searched all through MSDN and can't find an answer to how to do
this - if anyone knows the "magic formula" I would GREATLY appreciate it.
Thanks very much!
- Next message: Holly Mazerolle: "RE: aspx page is unable to read/write files that are located on a network share"
- Previous message: Wolfgang Kaml: "cannot unfold Namespace System.Security.Cryptography ?"
- Next in thread: Pent: "Re: Manipulation of Base64Strings"
- Reply: Pent: "Re: Manipulation of Base64Strings"
- Reply: Michael Giagnocavo [MVP]: "Re: Manipulation of Base64Strings"
- Reply: Fred Nelson: "Re: Manipulation of Base64Strings"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|