PageSourceSearch

https://prgi.gov.in/modules/custom/password_encrypt/js/password_encrypt.js?v=10.1.8

js prgi.gov.in collected 2026-10-04 23:58:24 UTC 1,456 bytes, 44 lines download raw bytes

1(function ($, Drupal, drupalSettings) {
2  'use strict';
3	// This function is strict.
4  Drupal.behaviors.password_encrypt = {
5    attach: function (context, settings) {
6      var passkey = drupalSettings.password_encrypt.passkey;
7      var cipher;
8      var pass;
9      var cpass;
10      var current_pass;
11
12      $('form.user-login, form.user-login-form', context).submit(function (event) {
13        pass = $('#edit-pass').val();
14        if (pass !== '') {
15          cipher = CryptoJS.AES.encrypt(pass, passkey).toString();
16          $('#edit-pass').val(cipher);
17        }
18      });
19
20      $('form.user-register-form, form.user-form', context).submit(function (event) {
21        current_pass = $('#edit-current-pass').val();
22        pass = $('#edit-pass-pass1').val();
23        cpass = $('#edit-pass-pass2').val();
24
25        if (pass !== cpass) {
26          $('span.error').append("<div>Password doesn't match. Please enter correct password.<div>");
27          $('#edit-pass-pass2').addClass('error').focus();
28          return false;
29        }
30
31        if (current_pass !== '') {
32          cipher = CryptoJS.AES.encrypt(current_pass, passkey).toString();
33          $('#edit-current-pass').val(cipher);
34        }
35
36        if (pass !== '') {
37          cipher = CryptoJS.AES.encrypt(pass, passkey).toString();
38          $('#edit-pass-pass1').val(cipher);
39          $('#edit-pass-pass2').val(cipher);
40        }
41      });
42    }
43  };
44})(jQuery, Drupal, drupalSettings);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.