Skip to content

Instantly share code, notes, and snippets.

@awswithdotnet
Created March 3, 2022 19:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save awswithdotnet/a2394a5c40448ce2eba7918358e69d0b to your computer and use it in GitHub Desktop.
Save awswithdotnet/a2394a5c40448ce2eba7918358e69d0b to your computer and use it in GitHub Desktop.
kms Crypto AESEncrypter Partial 3
string encryptedString = Convert.ToBase64String(encryptedData);
IEncryptionPackage encryptionPackage = new EncryptionPackage{
CipherText = encryptedString,
EncryptedKey = Convert.ToBase64String(encryptedDataKey)
};
return encryptionPackage;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment