This is a log of updates for the SimpleBit Module and Plugin. If you want to see previous updates, then go here.
Minor Update!
3 more functions have been added into the SimpleBit module!
.GetStringSize
(string) → (int)
Gets how many bits of data there are in a string.
.GetActiveStringSize
(string) → (int)
This gets all the active bits/1s in the Binary Sequence of the string.
If you want to get all the inactive bits/0s, do .GetStringSize(YourString)
- .GetActiveStringSize(YourString)
.GetAverageStringBin
(string) → (number)
This would get all the Binary Data from each character in a string, add it and devide it by the amount of characters, or in other words: gets the average.
In rare circumstances, this can sort-of act as a hashing algorithm, but more of a 1-way encription function that can’t be decripted.
But I recommend not using it for security purposes as many strings could have the same average byte data.
The byte data would be same if a string has exactly the same characters as the other string but in a different order, OR by rare coinsedance that the average byte data is the same but the strings are different.
Function fix
I have rewriten .GetAverageStringBin
on a more reliable method of checking the bytedata of each character. The new system should not error unlike the previous system.
.GetAverageStringBin
can also be used for checking if the entire string is just spaces or not, since if the entire string was made of spaces (' ')
then it would output 33.
SimpleBit V2 released!