RandomGenerator
class RandomGenerator (View source)
Convenience class for generating cryptographically secure pseudo-random strings/tokens
Methods
                    public                                                                            
                
                    string
                
                                
                    randomToken(string $algorithm = 'whirlpool')
        
                                            
                
            Generates a random token that can be used for session IDs, CSRF tokens etc., based on hash algorithms.
Details
        
                            string
    generateEntropy()
        deprecated
    
    deprecated
No description
        
                            string
    randomToken(string $algorithm = 'whirlpool')
        
    
    Generates a random token that can be used for session IDs, CSRF tokens etc., based on hash algorithms.
If you are using it as a password equivalent (e.g. autologin token) do NOT store it in the database as a plain text but encrypt it with Member::encryptWithUserSettings.