String key = "test";
I have a key. It is 4 characters long. What i want to do is have a function which looks at the length of key and then adds random characters at the end to make it the length of 20?
So if ket was just ‘te’ it would add 18 random characters at the end. If key is ‘test’ it adds 16 random characters at the end.
??
SO isn’t about making others write your code… but to give you a starting point, take a look at this question, and modify to suit.