Extra functions for ease in Cryptography-adjacent scripts (like mine)
Posted: 26 Dec 2022, 00:22
1) Another modulus function or an overhaul to the current modulus function : Currently, negative numbers in either the divisor or the dividend do not give an intended result/ work in the mathematically intended way. It wouldn't be that hard to change the current function or implement another function for it to work in the mathematical way, I guess.
2)Two-Way Associative Arrays : It would be massively helpful if we had Two-Way Associative Arrays which would mean that in an array Arr := {"A":"0123","B":"0124"...},
Arr["A"] would give "0123" (which Associative Arrays does currently) and Arr["0123"] would give "A" (which Associative Arrays does not do currently).
3)Using values of Variables for getting values of array items : Associative Arrays are basically the same thing as Simple Arrays, the only difference is that you can use Variables to get the values that correspond to the "key" in associative arrays, while in Simple Arrays, the "key" (the distinguisher? that comes after the name of the array and fullstop (example : In arr.1 , 1 is the "key"/distinguisher)) can only be the actual "key" and not a variable.
4)CaseSensitive Associative Arrays : You could do it with Scripting.Dictionary but that way you have to either use a custom function to add multiple key-value pairs in one line or you have to use one line for one pair. I do not know what the problems/issues would be in trying to add CaseSensitive Associative Arrays but it just would be convenient.
5) Additional (native) function to add multiple key-value pairs at a time in Scripting.Dictionary Arrays : Currently you have to use a custom function in order to add multiple pairs at once to Scripting.Dictionary associative arrays. It just would be convenient to add multiple pairs in one line rather than having to use x number of lines for x pairs.
2)Two-Way Associative Arrays : It would be massively helpful if we had Two-Way Associative Arrays which would mean that in an array Arr := {"A":"0123","B":"0124"...},
Arr["A"] would give "0123" (which Associative Arrays does currently) and Arr["0123"] would give "A" (which Associative Arrays does not do currently).
3)Using values of Variables for getting values of array items : Associative Arrays are basically the same thing as Simple Arrays, the only difference is that you can use Variables to get the values that correspond to the "key" in associative arrays, while in Simple Arrays, the "key" (the distinguisher? that comes after the name of the array and fullstop (example : In arr.1 , 1 is the "key"/distinguisher)) can only be the actual "key" and not a variable.
4)CaseSensitive Associative Arrays : You could do it with Scripting.Dictionary but that way you have to either use a custom function to add multiple key-value pairs in one line or you have to use one line for one pair. I do not know what the problems/issues would be in trying to add CaseSensitive Associative Arrays but it just would be convenient.
5) Additional (native) function to add multiple key-value pairs at a time in Scripting.Dictionary Arrays : Currently you have to use a custom function in order to add multiple pairs at once to Scripting.Dictionary associative arrays. It just would be convenient to add multiple pairs in one line rather than having to use x number of lines for x pairs.