using System.Security.Cryptography; namespace IdentityShroud.Core.Security; public static class RsaHelper { /// /// Load RSA private key from PKCS#8 format /// public static RSA LoadFromPkcs8(byte[] pkcs8Key) { var rsa = RSA.Create(); rsa.ImportPkcs8PrivateKey(pkcs8Key, out _); return rsa; } }