I am trying to generate a token using JCryptCipherCrypto and I wanted to generate a string which will contain a-z, A-Z, 0-9 and length must be of 16 characters.
I have done this:
$crypto = new JCryptCipherCrypto; $key = $crypto->generateKey();
Its method is not working or maybe I am doing something wrong :(
Can anyone tell me a better way to generate a token string or explain to me what I am missing?