<PackageReference Include="Relativity.Server.Utility.SDK" Version="5000.0.0" />

RSAWrapper

public class RSAWrapper
Provides static cryptography members using RSA encryption.
public RSAWrapper()

public static string Decrypt(string stringToDecrypt, string key)

Base64 decodes and RSA decrypts the provided string using the provided key.

public static string Encrypt(string stringToEncrypt, string key)

RSA encrypts and Base64 encodes the provided string using the provided key.

public static string Sign(string dataToSign, string key)

Computes an RSA signature hash of the provided data using the provided key.

public static bool Verify(string dataToVerify, string digest, string key)

Verifies the signature validity of the provided RSA encryption data.