bq/corbel-js

View on GitHub
src/cryptography.js

Summary

Maintainability
C
1 day
Test Coverage

Function cryptography has 173 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    corbel.cryptography = (function() {
        /*
         * A JavaScript implementation of the Secure Hash Algorithm, SHA-256, as defined
         * in FIPS 180-2
         * Version 2.2 Copyright Angel Marin, Paul Johnston 2000 - 2009.
Severity: Major
Found in src/cryptography.js - About 6 hrs to fix

    Function binb_sha256 has 42 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            function binb_sha256(m, l) {
                var HASH = new Array(1779033703, -1150833019, 1013904242, -1521486534,
                    1359893119, -1694144372, 528734635, 1541459225);
                var W = new Array(64);
                var a, b, c, d, e, f, g, h;
    Severity: Minor
    Found in src/cryptography.js - About 1 hr to fix

      Function str2rstr_utf8 has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              function str2rstr_utf8(input) {
                  var output = '';
                  var i = -1;
                  var x, y;
      
      
      Severity: Minor
      Found in src/cryptography.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status