コード例 #1
0
 protected override void Execute()
 {
     byte[] emailHash = CryptTool.HashEmail(this.emailField.Value);
     System.Console.WriteLine(DataUtils.ByteArrayToHexString(emailHash));
 }
コード例 #2
0
 /// <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));
 }