Unanswered question

Encrpyted password RSA

Dear All

I found in my login request this code. encryptedPassword could not be correlated.
I think it's created by JS.
I found a JS file see attached called rsa.js but I did not find the right way to use it inside my JS code in NEO
I suppose I need to give him : my clear pwd and the KeyId

thanks for your help

{ "method": "login", "params": { "encryptedPassword": "65895b7eaca6a11d1ace4a66849b7dd90e17456f649b23e05f7e5135eb88b1fbcc7713cb6a18be785e79ddc921ec7389c56cabaeb2b75a3fa6b976f56e7223a40180e6ed72130bcd96bb9946eb5e036117531f09227001ad9e25cbb99ce964781217c11653795b672efcbe8442dc4b03b1e416970a0403da01e13cb983296d4a", "keyId": "qr8Aav7e5WBhTi619MSLym2Ghwtaxmgp", "username": "C\\PerfTest1" } }

Laurent G.
Laurent G.

Laurent G.

Level
1
197 / 750
points

Answers

Laurent G.
Laurent G.

Laurent G.

Level
1
197 / 750
points

adding more details :

1. Submit button calls maybeLogin function
<button tabindex="3" tb-button-click="maybeLogin()" ng-class="{'tb-button-busy': busy}" tb-disabled="busy" tb-test-id="button-signin" class="tb-orange-button tb-button-login"><span class="" ng-show="!busy">Sign In</span><span class="ng-hide" ng-show="busy"><span>Signing In</span><span class="tb-icon-spinner-large"></span></span></button>

2. This function is called in the file : angular2.js
I renamed it because it's not the same I downloaded on the server directly

3. in this file I found encryptedPassword: rsa.encrypt(password, generatePublicKeyResult.key)

4.rsa.encrypted is in the file rsa.js but the reference is not the semae in angular .js ...

thanks for your help to use this files/functions