[Mono-list] Mono EncryptPassword Problem
Gonzalo Paniagua Javier
gonzalo.mono at gmail.com
Sun Mar 29 12:53:04 EDT 2009
On Sat, 2009-03-28 at 14:07 -0700, willisterman wrote:
> I've been using mono with a project for a bit, and have had no problems
> authenticating using the sqlmembershipprovider. I've now switched to using
> a custom xml membership provider, and I'm having trouble with
> authentication.
>
> Using the following code:
>
> byte[] bytes = Encoding.Unicode.GetBytes(password);
> byte[] src = Convert.FromBase64String(salt);
> byte[] dst = new byte[src.Length + bytes.Length];
> byte[] inArray = null;
> Buffer.BlockCopy(src, 0, dst, 0, src.Length);
> Buffer.BlockCopy(bytes, 0, dst, src.Length, bytes.Length);
> inArray = this.EncryptPassword(dst);
> ret = Convert.ToBase64String(inArray);
>
[...]
> Everything is the same until "this.EncryptPassword" is called, where a
> different response is returned.
>
> This is currently breaking authentication. Does anyone know a way to fix
> this?
Can you add a description of this problem and a small self-contained
test case to http://bugzilla.novell.com?
-Gonzalo
More information about the Mono-list
mailing list