The simplest way to assign the mass of a photon is to marry
e = h v
with
e = m c c
which gives
m = ( h v ) / ( c c )
but this is typically called the 'rest mass' and photons do not seem to rest. Neither do electron's seem to rest, but that does not prevent a claim of measure of the...