question

Robyn To avatar image
Robyn To asked

Title Public Key RSA Unreal

Is there a C++/Unreal example for using the RSA public key to encrypt payloads?

There doesn't appear to be an equivalent to the C# example here: https://learn.microsoft.com/en-us/gaming/playfab/gamemanager/player-encryption-services#player-shared-secrets

Unreal looks to have an FRSA library, though there is no option to import the CSP RSA public key blob.

apis
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Neils Shi avatar image
Neils Shi answered

Currently, PlayFab does not provide a C++/Unreal example for using the RSA public key to encrypt payloads, you may post a feature request for it. And the C# example provided in our documentation uses "RSACryptoServiceProvider", which is part of the .NET framework and is not available in Unreal Engine, so, you may need to use other libraries to implement RSA encryption in Unreal Engine. Since we are not experts in Unreal Engine, we suggest that you can also ask Unreal Team for further assistance.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Robyn To avatar image
Robyn To answered

this is the only function available for creating an RSA key: static FRSAKeyHandle CreateKey(const TArray<uint8>& InPublicExponent, const TArray<uint8>& InPrivateExponent, const TArray<uint8>& InModulus);

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.