Search
Thursday, 12th of January 2023, 2:40:09 UTC
3:20:16
ldb
I'm trying to figure out how the index were generated, and include them later
8:57:37
splittist
ldb: very cool. The tabulated tables (if you see what I mean) on eg labeled pages 558/559 of the pdf are more ragged than the ones on e.g. page 563 of the physical edition. The index is vital to be able to find references to aadvarks and warm fuzzy feeling, for example. (:
9:03:46
louis77
ldb I think I missed the link, can you repost?
14:04:20
nij-
With shell command `cat file > sha1sum` I can get the sha1 of the content of the file. How to do that in CL?
14:04:50
nij-
; in a native way.. if none I can call shell from CL..
14:05:38
jackdaniel
did you mean maybe `cat file | sha1sum` ?
14:05:45
jackdaniel
I think that ironclad has sha functions
14:13:52
nij-
ironclad seems a bit involving. I found sha1, which seems to do what I want. However,
14:14:04
nij-
While `echo abc | sha1sum` (=> 03cfd743661f07975fa2f1220c5194cbaff48451 -),
14:14:16
nij-
(sha1:sha1-digest "abc") ;; => (169 153 62 54 71 6 129 106 186 62 37 113 120 80 194 108 156 208 216 157)
14:14:35
nij-
Is there a universal translating scheme between these two types of return?
14:17:26
jackdaniel
if I were forced to take a guess, then I'd say that it is possible
14:18:04
Shinmera
crypto-shortcuts has conversions
14:18:14
_death
try echo -n abc | sha1sum
14:19:01
scymtym
the ironclad equivalent is (ironclad:byte-array-to-hex-string (ironclad:digest-sequence :sha1 (babel:string-to-octets (format nil "abc~%")))) => "03cfd743661f07975fa2f1220c5194cbaff48451"
14:25:08
nij-
Your example immediately teaches me how to use ironclad, by comparing to a tool that I'm more familiar with :)
14:35:11
pjb
nij-: the right shell command is sha1sum < file
14:39:27
pjb
(typep 42 (type-of most-positive-fixnum)) ;-)
Thursday, 12th of January 2023, 14:40:09 UTC