protected override void Execute()
        {
            string phoneNo = this.phoneNo.Value;

            byte[] phoneHash = CryptTool.HashPhoneNo(phoneNo);
            System.Console.WriteLine(DataUtils.ByteArrayToHexString(phoneHash));
        }
Beispiel #2
0
 /// <summary>
 /// Wrapper to hash email <see cref="Threema.MsgApi.CryptTool.HashPhoneNo"/>
 /// </summary>
 /// <param name="phoneNo">Phone number</param>
 /// <returns>Hash of phone number as hex-string</returns>
 public string HashPhoneNo(string phoneNo)
 {
     byte[] phoneHash = CryptTool.HashPhoneNo(phoneNo);
     return(DataUtils.ByteArrayToHexString(phoneHash));
 }