PageSourceSearch

https://www.aai.aero/sites/all/modules/contrib/password_encrypt/js/password_encrypt.js?tlt3ob

js aai.aero collected 2026-09-24 09:03:28 UTC 1,240 bytes, 37 lines download raw bytes

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

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.