473,394 Members | 1,879 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Search for Crypto function...

Hello newsgroup...

I am new to C#...

I know a CryptEnumProviders "feature" from C++.

What is the way to list the CSPs using C#? I did not found any function to
do so.
Thanks,
Marcus
Nov 17 '05 #1
3 2450
The .NET Framework comes with several CSPs and makes it easy to build your own.

When it comes to using some of the built in ones, take a look at the
following links for some examples of how to do it:

http://www.codeproject.com/dotnet/SimpleEncryption.asp (sadly in VB.NET, but
still quite informative)
http://www.codeproject.com/dotnet/en...decryption.asp

Brendan

"Marcus2" wrote:
Hello newsgroup...

I am new to C#...

I know a CryptEnumProviders "feature" from C++.

What is the way to list the CSPs using C#? I did not found any function to
do so.
Thanks,
Marcus

Nov 17 '05 #2
Hi,

many thanks for your links...

But my main problem is that I am looking for a funtion to list the available
csps unsing C# as CryptEnumProviders does it for c++...

Marcus

"Brendan Grant" wrote:
The .NET Framework comes with several CSPs and makes it easy to build your own.

When it comes to using some of the built in ones, take a look at the
following links for some examples of how to do it:

http://www.codeproject.com/dotnet/SimpleEncryption.asp (sadly in VB.NET, but
still quite informative)
http://www.codeproject.com/dotnet/en...decryption.asp

Brendan

"Marcus2" wrote:
Hello newsgroup...

I am new to C#...

I know a CryptEnumProviders "feature" from C++.

What is the way to list the CSPs using C#? I did not found any function to
do so.
Thanks,
Marcus

Nov 17 '05 #3
Marcus,

You can just call the CryptEnumProviders throgh the P/Invoke layer. As
a matter of fact, I've placed the definition on http://www.pinvoke.net. You
can find it at:

http://www.pinvoke.net/default.aspx/...Providers.html

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Marcus2" <Ma*****@discussions.microsoft.com> wrote in message
news:FA**********************************@microsof t.com...
Hi,

many thanks for your links...

But my main problem is that I am looking for a funtion to list the
available
csps unsing C# as CryptEnumProviders does it for c++...

Marcus

"Brendan Grant" wrote:
The .NET Framework comes with several CSPs and makes it easy to build
your own.

When it comes to using some of the built in ones, take a look at the
following links for some examples of how to do it:

http://www.codeproject.com/dotnet/SimpleEncryption.asp (sadly in VB.NET,
but
still quite informative)
http://www.codeproject.com/dotnet/en...decryption.asp

Brendan

"Marcus2" wrote:
> Hello newsgroup...
>
> I am new to C#...
>
> I know a CryptEnumProviders "feature" from C++.
>
> What is the way to list the CSPs using C#? I did not found any function
> to
> do so.
>
>
> Thanks,
> Marcus

Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Stu | last post by:
Hi, Im reading a file in from disk as a byte array then passing it to a memory stream for decryption using crypto api functions. What I have found is that you need to reduce the array length by 2...
2
by: Bryan Olson | last post by:
The current Python standard library provides two cryptographic hash functions: MD5 and SHA-1 . The authors of MD5 originally stated: It is conjectured that it is computationally infeasible to...
6
by: Michael Sparks | last post by:
Hi, I suspect this is a bug with AMK's Crypto package from http://www.amk.ca/python/code/crypto , but want to check to see if I'm being dumb before posting a bug report. I'm looking at...
13
by: Andy Chau | last post by:
I try to use RSA to implement the following scheme but wasn't sucessful. Sever encrypt a message using a public key, the client decrpyt the message using a private key. I don't want the client...
2
by: Mark | last post by:
I have been playing around with encrypting passwords using a class found in a MS KB (see farther down). It seems to work great so long as the original password is comprised of characters on the...
5
by: ~~~ .NET Ed ~~~ | last post by:
Anybody has any idea why this simple thing is not working? I pass a text file as input to encrypt it, then pass the encrypted version to the same function and get some garbled data not at all...
5
by: vermarajeev | last post by:
Hi guys, I want to encrypt/decrypt a file with AES in CTR mode using crypto++ library. To encrypt a file using AES in CTR mode the solution is something like this int CRYPTOPP_API...
2
by: vermarajeev | last post by:
Hi guys, I have written code to encrypt and decrypt files using perl script. Please help me to port below code to crypto++ library. //ENCRYPTION my $cipher = Crypt::CBC->new( -cipher =>...
12
by: Fett | last post by:
I need a crypto package that works on windows with python 2.5. Can anyone suggest one for me? I have been searching for a couple days for a good cryptography package to use for public/private...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.