Interacting with .Net CryptoProvider

View: New views
1 Messages — Rating Filter:   Alert me  

Interacting with .Net CryptoProvider

by Soeren Meyer-Eppler-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi,

I'm encrypting data using Crypto++ like so:

// Password-Based Encryptor using DES-EDE2 and HMAC/SHA-1
std::string
encrypt( const std::string & data, const std::string & key )
{
        std::string outString;
        DefaultEncryptorWithMAC encryptor((char*)key.c_str(), new HexEncoder
(new StringSink(outString)));
        encryptor.Put((byte *)data.c_str(), data.size());
        encryptor.MessageEnd();
        return outString;
}

Is it possible to decrypt this in C# using the MS supplied
cryptographic functions? How?
If not, what would be an encryption scheme that works in both
environments? Any code samples?

cheers,

    Sören

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Crypto++ Users" Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscribe@....
More information about Crypto++ and this group is available at http://www.cryptopp.com.
-~----------~----~----~----~------~----~------~--~---