protected override void Execute() { byte[] emailHash = CryptTool.HashEmail(this.emailField.Value); System.Console.WriteLine(DataUtils.ByteArrayToHexString(emailHash)); }
/// <summary> /// Wrapper to hash email <see cref="Threema.MsgApi.CryptTool.HashEmail"/> /// </summary> /// <param name="email">Email adress</param> /// <returns>Hash of email adress as hex-string</returns> public string HashEmail(string email) { byte[] emailHash = CryptTool.HashEmail(email); return(DataUtils.ByteArrayToHexString(emailHash)); }