Update README.md

This commit is contained in:
MixtapeXD 2020-10-14 10:06:48 -04:00 committed by GitHub
parent b19a72a34f
commit 8fb6cc5b37
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,17 +14,22 @@ and a symbol character set size of 32.
* GRC's algorithm is: * GRC's algorithm is:
```javascript ```javascript
function GRC(Password-length)
Var characters = 10;
Var length = 5;
Var lengthstatic = 5;
function GRC(length)
{ {
if(Password-length < 1) if(length < 1)
{ {
return 0 ; return 0 ;
} }
if (Password-length == 1) if (length == 1)
{ {
return Math.pow(number-of-characters, Password-length); return Math.pow(characters, lengthstatic);
} }
return Math.pow(number-of-characters, Password-length - 1) + GRC(Password-length - 1); return Math.pow(characters, length - 1) + GRC(length - 1);
} }
``` ```
and a symbol character set size of 33. and a symbol character set size of 33.