cloud-ide-lms-model 1.0.215 → 1.0.217

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,6 +8,7 @@ declare class AuthUserMst {
8
8
  user_emailid?: string;
9
9
  user_mobileno?: number;
10
10
  user_password?: string;
11
+ user_password_salt?: string;
11
12
  user_photo_id_cyfm?: string;
12
13
  user_passwordchangeonlogin?: boolean;
13
14
  user_isactive?: boolean;
@@ -1,2 +1,3 @@
1
+ declare function customEncrypt(plainPassword: string): string;
1
2
  declare function customDecrypt(encryptedPassword: string): string;
2
- export { customDecrypt };
3
+ export { customEncrypt, customDecrypt };
@@ -1,6 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.customEncrypt = customEncrypt;
3
4
  exports.customDecrypt = customDecrypt;
5
+ // Custom encryption function
6
+ function customEncrypt(plainPassword) {
7
+ let encryptedPassword = '';
8
+ for (let i = 0; i < plainPassword.length; i++) {
9
+ // Shift ASCII value of each character forward by 1
10
+ const encryptedCharCode = plainPassword.charCodeAt(i) + 1; // Shift forward by 1
11
+ encryptedPassword += String.fromCharCode(encryptedCharCode);
12
+ }
13
+ return encryptedPassword;
14
+ }
4
15
  // Custom decryption function
5
16
  function customDecrypt(encryptedPassword) {
6
17
  let decryptedPassword = '';
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "typescript": "^5.4.2"
6
6
  },
7
7
  "name": "cloud-ide-lms-model",
8
- "version": "1.0.215",
8
+ "version": "1.0.217",
9
9
  "description": "Package for Model management of Cloud IDEsys LMS",
10
10
  "main": "lib/index.js",
11
11
  "types": "lib/index.d.ts",