encrypt HA1