we can simply use the first 6 characters of the hashed email, to uppercase we can use pure CSS.

    text-transform: uppercase;