public static RSAParameters LoadFromFile(string fileName, string password)
 {
     return(RSAParametersLoader.DeserializeRSAKeyFromStream((Stream) new FileStream(fileName, FileMode.Open, FileAccess.Read), password));
 }
        public static RSAParameters LoadFromResource(Assembly assembly, string resourceName, string password)
        {
            string name = assembly.GetName().Name;

            return(RSAParametersLoader.DeserializeRSAKeyFromStream(assembly.GetManifestResourceStream(name + "." + resourceName), password));
        }