Arjun M.R

Arjun M.R

  • 1.9k
  • 190
  • 5.4k

HIde JS file in a layout page using ASP.NET Core MVC

Dec 3 2021 11:28 AM

Hi all,

      I am facing a big problem with my code, I am using a js file with AES encryption algorithm. The problem is while I am publishing my application the encryption JS file is showing while I inspect my code in the browser is there any method to hide the JS file in the layout page using asp.net core MVC

<script src="/JusSuit_group/App/Services/EncryptDecryptService.js"></script>

when I clicked on the above link the encryption key and other details are visible. Please help me to solve this issue. Is it possible to hide js file?

 

var key = CryptoJS.enc.Utf8.parse('abcde');
var iv = CryptoJS.enc.Utf8.parse('efghukkkhs');

let code = (function () {
	return {
		//
			return encryptedMessage.toString();
		},
		decryptMessage: function (encryptedMessage = '') {
			


			
				}).toString(CryptoJS.enc.Utf8);


			return _enid;
		}
	}
})();

 

 


Answers (4)