Thanks, but i tried that, but the integer returned was always 0, kind of negating the point of it.
The reason why i want to do this, is because we use this method to encrypt our passwords in our ingres programs, and i need to create a .NET interface, and it would be ideal if i could use the same mechanism.