Esempio n. 1
0
    public string doEncrypt(string clearData, string merPublicKey)
    {
        string encryptedData = "";

        try
        {
            encryptedData = myPKCS7.encryptMessage(clearData, myPKCS7.getPublicCert(merPublicKey));
        }
        catch (Exception ex)
        {
        }
        return(encryptedData);
    }