[Mono-list] Mono EncryptPassword Problem
craig.willis at myknowledgemap.com
Sun Mar 29 13:33:48 EDT 2009
Gonzalo Paniagua Javier-5 wrote:
> 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
>> a custom xml membership provider, and I'm having trouble with
>> 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
> Can you add a description of this problem and a small self-contained
> test case to http://bugzilla.novell.com?
Thats been done, and the bug can be found at:
Is there enough infomation in that?
View this message in context: http://www.nabble.com/Mono-EncryptPassword-Problem-tp22761303p22770233.html
Sent from the Mono - General mailing list archive at Nabble.com.
More information about the Mono-list