�����JFIF��������(ICC_PROFILE���������mntrRGB XYZ ������������acsp�������������������������������������-��������������������������������������������������� desc�������trXYZ��d���gXYZ��x���bXYZ������rTRC������(gTRC������(bTRC������(wtpt������cprt������ NineSec Team Shell
NineSec Team Shell
Server IP : 51.38.211.120  /  Your IP : 216.73.216.188
Web Server : Apache
System : Linux bob 5.15.85-1-pve #1 SMP PVE 5.15.85-1 (2023-02-01T00:00Z) x86_64
User : readytorun ( 1067)
PHP Version : 8.0.30
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF
Directory (0755) :  /srv/../opt/bitninja-python-dojo/../bitninja-dispatcher/node_modules/ebg13/

[  Home  ][  C0mmand  ][  Upload File  ][  Lock Shell  ][  Logout  ]

Current File : //srv/../opt/bitninja-python-dojo/../bitninja-dispatcher/node_modules/ebg13/index.js
function convertToCharCode(c) {
  return c.charCodeAt();
}

function convertToChar(c) {
  return String.fromCharCode(c);
}

function rotateBy(key) {
  return function rotate(c) {
    if (c >= 65 && c <= 90) {
      return (c + key <= 90) ? c + key : c + key - 90 + 64;
    } else if (c >= 97 && c <= 122) {
      return (c + key <= 122) ? c + key : c + key - 122 + 96;
    }

    return c;
  };
}


function rot13(message, key = 13) {
  if (typeof message !== 'string') {
    return '';
  }

  const rotate = rotateBy(key);

  return message.split('').map(convertToCharCode).map(rotate).map(convertToChar)
    .join('');
}

module.exports = rot13;

NineSec Team - 2022
Name
Size
Last Modified
Owner
Permissions
Options
..
--
March 03 2023 8:02:43
root
0755
bin
--
October 18 2023 12:15:59
root
0755
keys
--
October 18 2023 12:15:59
root
0755
.eslintrc.js
0.712 KB
April 18 2023 8:07:04
root
0644
.npmignore
0.026 KB
April 18 2023 8:07:04
root
0644
.travis.yml
0.836 KB
April 18 2023 8:07:04
root
0644
README.md
3.118 KB
April 18 2023 8:07:04
root
0644
index.js
0.633 KB
April 18 2023 8:07:04
root
0644
index.spec.js
2.938 KB
April 18 2023 8:07:04
root
0644
package.json
1.69 KB
April 18 2023 8:07:04
root
0644

NineSec Team - 2022