Groups | Blog | Home


Archived Months
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
all groups > dotnet security > august 2005 > threads for august 1 - 7, 2005

Filter by week: 1 2 3 4 5

String to byte[] & back using Base64
Posted by Samba at 8/7/2005 10:21:03 PM
Hi, Can I please have a very small code snippet to convert byte[] to string and back using Base64? Advance thanks. -- Samba! ...more >>


X509 digital certificate for offline solution
Posted by Gaja at 8/5/2005 10:57:02 PM
Hi, I have a situation. We need to encrypt database connection information like server name, user id and password. I was thinking of X509 digital certificate and cryptography. Unfortunately this should work as a offline solution. I have used digital certificates that was verified by certif...more >>

does C# have any collection objects that support sort functionality so that I dont have to write my own sorting algorithm?
Posted by Daniel at 8/5/2005 11:53:38 AM
does C# have any collection objects that support sort functionality so that I dont have to write my own sorting algorithm? ...more >>

Extra '\0' chars after decryption
Posted by Samba at 8/5/2005 2:59:13 AM
Hi, I'm trying encryption and decryption ... the problem is that whatever symmetric algorithm I use, my decrypted string almost always contains a couple of extra-spaces (in C#, I get two '\0' chars at the end of the decrypted string). Otherwise, the string is correct. I couldn't find out if ...more >>

Create an Event Log on a Least Privilege User Account
Posted by mr.mike.ward NO[at]SPAM gmail.com at 8/4/2005 6:51:42 PM
I'm trying to do the following on an x64 Pro system running in a Least Privilege User Account. (C#) EventLog eventLog = new EventLog("MyLog", ".", "MyLog"); ---------- I get a security exception with the following text. System.Security.SecurityException: Requested registry access is not ...more >>

how to create a gif or png dynamicaly in .aspx and return in response?
Posted by Daniel at 8/4/2005 3:31:27 PM
how to create a gif or png dynamicaly in .aspx and return in response? ...more >>

RSACryptoServiceProvider Expiration?
Posted by tsteinke NO[at]SPAM gmail.com at 8/4/2005 8:23:44 AM
I am seeing a secnario where a signature that I generated with a RSACryptoServiceProvider.SignData 90 days ago cannot be verified. Do these signatures expire? If so is there a waay to turn that off? ...more >>

How to impersonate while creating a User via System.DirectoryServi
Posted by Norbert Kessler at 8/4/2005 7:06:08 AM
We are trying to create a local user through this code in a ASP.NET page: Dim AD As DirectoryEntry = _ New DirectoryEntry("WinNT://" + Environment.MachineName + ",computer") Dim NewUser As DirectoryEntry = AD.Children.Add("TestUser1", "user") NewUser.Invoke("SetPassword", New Object() {"#1...more >>



Bad Data error in DES encryption
Posted by Samba at 8/3/2005 10:09:02 PM
Hi, I'm doing a symmetric encryption using DES provider. I've posted my VB.NET code below: ' Encryption Dim encAlg As New DESCryptoServiceProvider Dim ms As New MemoryStream Dim cs As New CryptoStream(ms, encAlg.CreateEncryptor(ASCIIEncoding.ASCII.GetBytes("MyKey123"), ...more >>

sn.exe exit code documentation ?
Posted by Thibaut at 8/3/2005 12:47:01 AM
Hi, When one calls sn.exe, what are the expected error codes (errorlevel) in return ? I'm using delay signing. I think about three cases when achieving the final signing: - assembly was signed successfully (seems to be errorlevel 0) - assembly was not signed because it's already signed w...more >>

Securing a control assembly against use of foreign assemblies
Posted by Jürgen Bayer at 8/3/2005 12:00:00 AM
Hi all, I know how to use the StrongNameIdentityPermission attribute to secure an assembly against callers which have no strong name with the given public key. Securing controls is problematic, since the Visual Studio (7) designer has no strong name (even if it would, the public key would b...more >>

in C# fastest way to convert a string into a MemoryStream
Posted by Daniel at 8/2/2005 4:01:15 PM
in C# fastest way to convert a string into a MemoryStream ...more >>

Authorization against AD using MC++
Posted by albier at 8/2/2005 11:52:00 AM
I wrote a code with C# to authorize users against AD. Here is the code: ArrayList usersList = new ArrayList(); object groups = user.Invoke("Groups",null); foreach (object group in (IEnumerable)groups) { DirectoryEntry groupEntry = new DirectoryEntry(group); usersList.Add(groupEntry.Nam...more >>

<identity impersonat=> problems.
Posted by nobody101 NO[at]SPAM comcast.net at 8/2/2005 9:54:30 AM
I have a web service configured with Anonymous access disabled. The calling client, prior to executing a method on the service, sets its network credentials for the IIS to authenticate: CredentialCache cacheVU =3D new CredentialCache(); cacheVU.Add( new Uri(<my url here>), "Negotiate",...more >>

Decrypt file in VB6 encrypted in vb.net
Posted by mark.brown NO[at]SPAM safefinancials.co.uk at 8/1/2005 12:54:53 PM
HELP I have been trying for some days now to decrypt a file encrypted in VB.NET. - The algorithm being used is DES. - I understand that the cipher is CBC (by default). - ASCII key and IV supplied are 8 characters long - No base64 - No compression (although i dont know for sure. They dont...more >>


DevelopmentNow Blog