Question

New basic jscript mission charCodeAt() .find password ?

<script language=JavaScript>

function checkPass( password )

{

var count1 = 3, count2 = 5;

var sumof1 = 0, sumof2 = 0;

var charlist = "BHFE8"

for( i = 0; i < password.length; ++i ) { sumof1 += ( password.charCodeAt( i ) * count1 ); count1++; }

for( i = 0; i < charlist.length; ++i ) { sumof2 += ( charlist.charCodeAt( i ) * count2 ); count2++; }

(sumof1 == sumof2)

}

</script>

this jscript is not used on any websites it was created to improve skill

please help me by finding password ?

Answers

There are many passwords that will pass this test.

The number of characters for the password can also vary.

The sum of the codes need to add up to an exact number which is 2308 after being multiplied by co-efficients.

The co-efficients begin at 3 and increase by 1 at each character in-step.

Example password is:

2308 = 5xB + 6xH + 7xF + 8xE + 9x8

2308 = 5x66 + 6x72 + 7x70 + 8x69 + 9x56

2308 = 3x66 + 4x72 + 5x70 + 6x69 + 7x54 + 8x85

2308 = BHFE6U

===

encodeURI allows special characters such as tabs, carriage returns, line feeds, spaces, and non-printable characters to be represented by visible characters.

These characters are supported by URI strings.

decodeURI will reverse the codes.

This technique will allow a larger set of passwords ( supporting special characters ) to pass the test.

====

I'm sorry because your link is blocked by my internet service provider.

====

I don't want to find one.

Please transcribe the question into Y!Answers format.

==================

encodeURI("BHFE6U") does not modify the password because no special characters are used.

You certainly can try "BHFE6U"

http://www.enigmagroup.org/missions/basi…

#1