cloud-ide-model-schema
Version:
Pachage for schema management of Cloud IDEsys LMS
15 lines (14 loc) • 577 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.customDecrypt = void 0;
// Custom decryption function
function customDecrypt(encryptedPassword) {
var decryptedPassword = '';
for (var i = 0; i < encryptedPassword.length; i++) {
// Shift ASCII value of each character back by the same amount
var decryptedCharCode = encryptedPassword.charCodeAt(i) - 1; // Shift back by 1
decryptedPassword += String.fromCharCode(decryptedCharCode);
}
return decryptedPassword;
}
exports.customDecrypt = customDecrypt;