00:46:47  * DarkGodquit (Ping timeout: 246 seconds)
02:16:23  * hdmsquit (Quit: hdms)
02:29:10  <kostco>does luvit have a common crypto lib?
02:32:04  <daurnimator>kostco: what operations do you need to perform?
02:33:20  <kostco>daurnimator: just create a hmac
02:33:37  <daurnimator>kostco: it's not luvit specific; but I'd use luaossl for that
02:33:59  <kostco>daurnimator: sure thanks! ill check it out, see if it works for this
02:36:14  <daurnimator>$ lua -e 'print(require"base64".encode(require"openssl.hmac".new("mykey"):final("my data")))'
02:36:16  <daurnimator>lwBoAMBjwH4qP6CAlBhh1cc8s/o=
02:36:21  <daurnimator>kostco: ^^ as an example
03:22:00  <kostco>thanks! yea i was reading through the docs for it
03:22:07  <kostco>any idea if theres something for scmp ?
03:23:12  <kostco>though i guess just a == would prolly cut that
03:37:17  <daurnimator>kostco: scmp?
03:37:50  <kostco>daurnimator: https://www.npmjs.com/package/scmp
03:38:18  <kostco>trying to port this
03:38:18  <kostco>https://github.com/1lobby/mailgun-js/
03:39:13  <daurnimator>kostco: in lua all strings are interned. strings are then compared by pointer. you don't have those problems
03:40:22  <kostco>yep :)
03:40:55  <kostco>didnt know about interned string before though, its interesting, thanks
03:42:48  <daurnimator>kostco: you end up with the same problem in a different place: as soon as you make a string you might leak timing data
03:53:03  * Something12joined
05:11:11  * Something12quit (Ping timeout: 260 seconds)
05:48:06  * SkyRocknRolljoined
07:41:51  * SkyRocknRollquit (Ping timeout: 240 seconds)
07:47:56  * DarkGodjoined
08:00:05  * SkyRocknRolljoined
10:00:49  * SkyRocknRollquit (Read error: Connection reset by peer)
10:01:17  * SkyRocknRolljoined
11:43:36  * SkyRocknRollquit (Ping timeout: 265 seconds)
11:56:22  * SkyRocknRolljoined
12:38:54  <rphillips>good morning
13:12:19  * hdmsjoined
14:12:20  * SkyRocknRollquit (Remote host closed the connection)
14:24:47  * dan336joined
15:19:06  * piernovquit (Ping timeout: 250 seconds)
15:27:14  * piernovjoined
16:24:20  * dan336quit (Ping timeout: 244 seconds)
16:24:23  * dan336joined
16:38:53  * dan336quit (Read error: Connection reset by peer)
16:39:03  * dan336joined
16:41:00  * dan3361joined
16:41:00  * dan336quit (Read error: Connection reset by peer)
16:41:58  * dan3361quit (Read error: Connection reset by peer)
16:42:00  * dan336joined
16:43:16  * piernovquit (Read error: Connection reset by peer)
16:47:56  * piernovjoined
16:52:27  * piernovquit (Ping timeout: 240 seconds)
16:55:21  * piernovjoined
17:25:30  * DarkGodquit (Ping timeout: 246 seconds)
17:25:47  * piernovquit (Ping timeout: 240 seconds)
17:31:33  * piernovjoined
18:01:46  * dan336quit (Quit: Leaving.)
18:15:31  * Something12joined
18:47:43  * DarkGodjoined
20:38:09  <creationix>I’m back
20:38:33  <creationix>kostco: luvit has openssl bindings baked in
20:46:07  <kostco>ah cool, good to know, openssl.hmac.new should do what i need i believe then
21:00:09  <kostco>creationix: is there something like nodes Buffer.isBuffer in luvit?
21:00:39  <creationix>type(value) == “string"
21:00:47  <creationix>or do you mean something else
21:00:54  <creationix>I always use strings for binary data in luvit
21:03:05  <kostco>sure that should most likely cut it. its a module that needs to load attachments for mailgun but i guess we can do without knowing if the attachment is a text doc or binary data
21:08:17  <creationix>kostco: why is that an issue, strings in lua are binary
21:08:51  <creationix>luvit does have a buffer class I believe, but I never use it
21:09:21  <creationix>it has stuff like node’s .readUint32LE() methods and is mutable, unlike strings
21:09:43  <creationix>I tend to just inline that access when I need it since it’s so trivial using the bit library
21:10:52  <creationix>since luvit’s buffer uses the object system from core https://github.com/luvit/luvit/blob/master/deps/buffer.lua…
21:11:12  <creationix>you can use instanceof https://github.com/luvit/luvit/blob/master/deps/core.lua#L53
21:40:12  <kostco>oh awesome, instanceof is what i need,
22:15:08  * Something12quit (Read error: Connection reset by peer)
23:57:19  * Michalikquit (Ping timeout: 240 seconds)
23:57:19  * kostcoquit (Ping timeout: 240 seconds)