diff --git a/signal-ex/main.go b/signal-ex/main.go new file mode 100644 index 0000000..6d11d05 --- /dev/null +++ b/signal-ex/main.go @@ -0,0 +1,38 @@ +package main + +import ( + "fmt" + "io/ioutil" + "os" + "strings" + + "github.com/emojisum/emojisum/emoji" +) + +func main() { + buf, err := ioutil.ReadFile("num") + if err != nil { + fmt.Fprintln(os.Stderr, err) + os.Exit(2) + } + + str := strings.Replace(string(buf), " ", "", -1) + i := 0 + for { + if i >= len(str) { + break + } + if strings.Contains(str[i:i+1], "\n") { + i += 1 + fmt.Print("\n") + continue + } + d, err := emoji.FromHexString(str[i : i+2]) + if err != nil { + fmt.Fprintln(os.Stderr, err) + os.Exit(2) + } + i += 2 + fmt.Print(d) + } +} diff --git a/signal-ex/num b/signal-ex/num new file mode 100644 index 0000000..f6c6cf1 --- /dev/null +++ b/signal-ex/num @@ -0,0 +1,3 @@ +1589431412 8991911005 +5208747685 9704261801 +9636252115 2237458346 diff --git a/signal-ex/signal_fingerprint_after.png b/signal-ex/signal_fingerprint_after.png new file mode 100644 index 0000000..331395f Binary files /dev/null and b/signal-ex/signal_fingerprint_after.png differ diff --git a/signal-ex/signal_fingerprint_before.png b/signal-ex/signal_fingerprint_before.png new file mode 100644 index 0000000..71142ba Binary files /dev/null and b/signal-ex/signal_fingerprint_before.png differ