INNER CODE UNIT · JavaScript

resolveProgId

gnh1201/welsonjs · app.js:568

    var resolveProgId = function(alias) {
        var map = {
            "sha1": "System.Security.Cryptography.SHA1Managed",
            "sha256": "System.Security.Cryptography.SHA256Managed",
            "sha384": "System.Security.Cryptography.SHA384Managed",
            "sha512": "System.Security.Cryptography.SHA512Managed",
            "utf-8": "System.Text.UTF8Encoding"
        };

        alias = (alias || "").toLowerCase();

        if (alias in map) {
            return map[alias];
        }

        throw new Error("Not supported algorithm: " + alias);
    };
    

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…