How casting works
A reading is six hex digits. Each digit gives one line, from the bottom up, with the odds of the yarrow stalks.
1 2 3
old yang, moving
3/16
9 a b c d e f
young yin
7/16
Cast takes six digits from your device's secure random number generator.
Seal a question hashes your question with the time, so the same question at the same time always gives the same reading, and anyone can check it.
Today's hexagram hashes only the date, so it is the same for everyone.
A sealed reading takes your question, a new line and the minute in UTC, and hashes them with SHA-256. The first six hex digits of the hash are the reading.
Settings decides whether the seal takes the minute, the hour or the day.
In any shell, with your question and the minute it was sealed:
printf '%s\n%s' 'your question' 'YYYY-MM-DDTHH:MMZ' | sha256sum | cut -c1-6
And today's hexagram:
printf '%s' 'YYYY-MM-DD' | sha256sum | cut -c1-6