Generate string

N

Nikolay Petrov

I am using Encryption/Decryption in one of my applications.
This process needs a key, which should be stored somewhere.
I don't want to store it in my code, so I come with idea to make a function
which generates the key. It should be 16 characters in length, must contain
digits and letters(small and big caps). And of course it should return the
same string every time it's called.
What I need how to make a function to generate this string of letters and
digits.
And I am lost, can't figure the algoritm.
Any ideas?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top