jens@0: #include jens@0: #include "mnemonic.h" jens@0: jens@0: main () jens@0: { jens@0: mn_byte buf[0x10000]; jens@0: char outbuf[0x90000]; jens@0: int buflen; jens@0: int n; jens@0: jens@0: fprintf (stderr, "%s\n", mn_wordlist_version); jens@0: jens@0: buflen = fread (buf, 1, sizeof (buf), stdin); jens@0: n = mn_encode (buf, buflen, outbuf, sizeof outbuf, MN_F64BITSPERLINE); jens@0: if (n == 0) jens@0: fwrite (outbuf, 1, strlen (outbuf), stdout); jens@0: else jens@0: fprintf (stderr, "mn_encode error %d\n", n); jens@0: putchar ('\n'); jens@0: jens@0: return 0; jens@0: }