UNPKG

cloud-ide-lms-model

Version:

Package for Model management of Cloud IDEsys LMS

14 lines (13 loc) 547 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.customDecrypt = customDecrypt; // Custom decryption function function customDecrypt(encryptedPassword) { let decryptedPassword = ''; for (let i = 0; i < encryptedPassword.length; i++) { // Shift ASCII value of each character back by the same amount const decryptedCharCode = encryptedPassword.charCodeAt(i) - 1; // Shift back by 1 decryptedPassword += String.fromCharCode(decryptedCharCode); } return decryptedPassword; }