mirror of
https://github.com/urbit/shrub.git
synced 2024-12-13 16:03:36 +03:00
29 lines
672 B
Plaintext
29 lines
672 B
Plaintext
::
|
|
:::: /hoon/pope/gen
|
|
::
|
|
/? 310
|
|
:: Input twitter keys
|
|
/- sole
|
|
!:
|
|
=+ cryp=crub
|
|
=+ [sole]
|
|
:- %ask
|
|
|= $: {now/@da eny/@uvJ bec/beak}
|
|
{{who/ship $~} $~}
|
|
==
|
|
^- (sole-result (cask tang))
|
|
%+ sole-yo leaf+"generating carrier {(scow %p who)} (#{(scow %ud who)})"
|
|
%+ sole-lo [%| %pope-pass "passphrase: "]
|
|
%+ sole-go (boss 256 (star prn))
|
|
|= fra/@t
|
|
%+ sole-lo [%| %pope-none "[press enter to compute]"] :: XX oy
|
|
%+ sole-go (easy ~)
|
|
|= $~
|
|
=+ bur=(shaz (add who (shaz fra)))
|
|
~& %computing-fingerprint
|
|
=+ arc=(pit:nu:cryp 512 bur)
|
|
%+ sole-so %tang
|
|
:~ leaf+"generator: {(scow %uw bur)}"
|
|
leaf+"fingerprint: {(scow %uw fig:ex:arc)}"
|
|
==
|