Logs: liberachat/#haskell
| 2021-06-26 09:50:46 | × | dunkeln_ quits (~dunkeln@94.129.65.28) (Read error: Connection reset by peer) |
| 2021-06-26 09:51:19 | → | dunkeln_ joins (~dunkeln@94.129.65.28) |
| 2021-06-26 09:54:34 | → | Codaraxis_ joins (~Codaraxis@ip68-5-90-227.oc.oc.cox.net) |
| 2021-06-26 09:54:51 | × | econo quits (uid147250@user/econo) (Quit: Connection closed for inactivity) |
| 2021-06-26 09:58:29 | × | Codaraxis__ quits (~Codaraxis@193.32.126.161) (Ping timeout: 265 seconds) |
| 2021-06-26 10:02:25 | → | m7zs3gzw joins (~m7zs3gzw@178.155.6.220) |
| 2021-06-26 10:03:05 | × | xsperry quits (~as@user/xsperry) (Remote host closed the connection) |
| 2021-06-26 10:05:04 | → | fizbin joins (~fizbin@c-73-33-197-160.hsd1.nj.comcast.net) |
| 2021-06-26 10:05:07 | → | Codaraxis__ joins (~Codaraxis@193.32.126.154) |
| 2021-06-26 10:08:41 | × | m7zs3gzw quits (~m7zs3gzw@178.155.6.220) (Read error: Connection reset by peer) |
| 2021-06-26 10:08:57 | × | Codaraxis_ quits (~Codaraxis@ip68-5-90-227.oc.oc.cox.net) (Ping timeout: 244 seconds) |
| 2021-06-26 10:11:32 | × | dunkeln_ quits (~dunkeln@94.129.65.28) (Remote host closed the connection) |
| 2021-06-26 10:12:15 | → | gehmehgeh joins (~user@user/gehmehgeh) |
| 2021-06-26 10:16:56 | → | eggplantade joins (~Eggplanta@2600:1700:bef1:5e10:c4e3:f231:bc2a:37da) |
| 2021-06-26 10:17:13 | → | dunkeln_ joins (~dunkeln@94.129.65.28) |
| 2021-06-26 10:17:22 | × | elf_fortrez quits (~elf_fortr@adsl-72-50-6-22.prtc.net) (Ping timeout: 246 seconds) |
| 2021-06-26 10:17:47 | × | Schrostfutz quits (~Schrostfu@p5de88aa6.dip0.t-ipconnect.de) (Ping timeout: 250 seconds) |
| 2021-06-26 10:21:59 | × | eggplantade quits (~Eggplanta@2600:1700:bef1:5e10:c4e3:f231:bc2a:37da) (Ping timeout: 272 seconds) |
| 2021-06-26 10:22:52 | × | geekosaur quits (~geekosaur@xmonad/geekosaur) (Killed (NickServ (GHOST command used by allbery_b))) |
| 2021-06-26 10:22:54 | → | allbery_b joins (~geekosaur@xmonad/geekosaur) |
| 2021-06-26 10:23:24 | × | feliix42 quits (~felix@gibbs.uberspace.de) (Quit: ZNC 1.8.2 - https://znc.in) |
| 2021-06-26 10:23:36 | → | feliix42 joins (~felix@gibbs.uberspace.de) |
| 2021-06-26 10:24:15 | → | dhil joins (~dhil@195.213.192.47) |
| 2021-06-26 10:24:40 | × | dunkeln_ quits (~dunkeln@94.129.65.28) (Ping timeout: 252 seconds) |
| 2021-06-26 10:25:32 | → | ph88 joins (~ph88@2a02:8109:9e00:7e5c:7c55:3c65:74e1:3dc5) |
| 2021-06-26 10:26:38 | → | dunkeln joins (~dunkeln@188.71.193.140) |
| 2021-06-26 10:26:55 | × | fizbin quits (~fizbin@c-73-33-197-160.hsd1.nj.comcast.net) (Remote host closed the connection) |
| 2021-06-26 10:31:17 | × | takuan quits (~takuan@178-116-218-225.access.telenet.be) (Remote host closed the connection) |
| 2021-06-26 10:32:30 | → | takuan joins (~takuan@178-116-218-225.access.telenet.be) |
| 2021-06-26 10:39:08 | × | noctux quits (~noctux@user/noctux) (Ping timeout: 252 seconds) |
| 2021-06-26 10:40:23 | → | noctux joins (~noctux@user/noctux) |
| 2021-06-26 10:45:17 | × | chexum quits (~chexum@gateway/tor-sasl/chexum) (Ping timeout: 244 seconds) |
| 2021-06-26 10:45:52 | → | pretty_dumm_guy joins (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) |
| 2021-06-26 10:47:42 | × | Gurkenglas quits (~Gurkengla@dslb-002-203-144-156.002.203.pools.vodafone-ip.de) (Ping timeout: 272 seconds) |
| 2021-06-26 10:51:17 | → | kayprish joins (~kayprish@46.240.143.86) |
| 2021-06-26 10:51:46 | → | yoctocell joins (~user@h87-96-130-155.cust.a3fiber.se) |
| 2021-06-26 10:55:03 | × | dunkeln quits (~dunkeln@188.71.193.140) (Ping timeout: 250 seconds) |
| 2021-06-26 11:00:14 | → | merijn joins (~merijn@83-160-49-249.ip.xs4all.nl) |
| 2021-06-26 11:03:08 | × | v01d4lph4 quits (~v01d4lph4@user/v01d4lph4) (Remote host closed the connection) |
| 2021-06-26 11:03:22 | × | fef quits (~thedawn@user/thedawn) (Ping timeout: 244 seconds) |
| 2021-06-26 11:03:28 | → | geekosaur joins (~geekosaur@xmonad/geekosaur) |
| 2021-06-26 11:03:41 | ← | blackfield parts (~blackfiel@85.255.4.218) () |
| 2021-06-26 11:03:42 | → | v01d4lph4 joins (~v01d4lph4@user/v01d4lph4) |
| 2021-06-26 11:03:47 | → | waleee joins (~waleee@2001:9b0:216:8200:d457:9189:7843:1dbd) |
| 2021-06-26 11:05:28 | × | allbery_b quits (~geekosaur@xmonad/geekosaur) (Ping timeout: 258 seconds) |
| 2021-06-26 11:05:58 | × | tromp quits (~textual@dhcp-077-249-230-040.chello.nl) (Quit: My iMac has gone to sleep. ZZZzzz…) |
| 2021-06-26 11:08:03 | × | xff0x quits (~xff0x@2001:1a81:5302:7b00:dba5:5569:ccc4:c781) (Ping timeout: 250 seconds) |
| 2021-06-26 11:08:20 | → | xff0x joins (~xff0x@185.65.135.235) |
| 2021-06-26 11:08:36 | × | v01d4lph4 quits (~v01d4lph4@user/v01d4lph4) (Ping timeout: 272 seconds) |
| 2021-06-26 11:12:36 | → | Sornaensis joins (~Sornaensi@077213194163.dynamic.telenor.dk) |
| 2021-06-26 11:15:57 | → | fef joins (~thedawn@user/thedawn) |
| 2021-06-26 11:18:51 | → | dunkeln_ joins (~dunkeln@188.71.193.140) |
| 2021-06-26 11:20:46 | × | xff0x quits (~xff0x@185.65.135.235) (Ping timeout: 252 seconds) |
| 2021-06-26 11:21:42 | → | parzema joins (~parzema@124.188.206.3) |
| 2021-06-26 11:22:30 | → | xff0x joins (~xff0x@2001:1a81:5302:7b00:dba5:5569:ccc4:c781) |
| 2021-06-26 11:25:17 | <parzema> | How would you decrypt encrypted data (in hex format) in Salsa20 cipher? If you have the key and nonce and the encrypted data? |
| 2021-06-26 11:25:24 | <parzema> | In Haskell |
| 2021-06-26 11:26:39 | <hpc> | same way i would in any other language - see if there's a package or command-line utility i can take advantage of |
| 2021-06-26 11:26:51 | <hpc> | and if neither of those work, implement the algorithm |
| 2021-06-26 11:27:29 | <hpc> | @hoogle Salsa20 |
| 2021-06-26 11:27:29 | <lambdabot> | Crypto.Nettle.Ciphers data SALSA20 |
| 2021-06-26 11:27:29 | <lambdabot> | Crypto.Nettle.Ciphers data ESTREAM_SALSA20 |
| 2021-06-26 11:27:35 | × | hmmmas quits (~chenqisu1@183.217.200.246) (Quit: Leaving.) |
| 2021-06-26 11:27:36 | <parzema> | https://hackage.haskell.org/package/Z-Botan-0.4.0.0/docs/Z-Crypto-Cipher.html |
| 2021-06-26 11:28:45 | → | blackfield joins (~blackfiel@85.255.4.218) |
| 2021-06-26 11:29:10 | <hpc> | looks like you found it then |
| 2021-06-26 11:29:34 | <parzema> | hpc it doesnt show any examples |
| 2021-06-26 11:29:55 | <sshine> | typical |
| 2021-06-26 11:30:09 | <parzema> | encrypting or decrypting examples |
| 2021-06-26 11:31:01 | <sshine> | parzema, so there's decryptBlocks, and a hint that setBlockCipherKey must be called. |
| 2021-06-26 11:31:55 | <hpc> | so what you're really asking is how to use that particular package? |
| 2021-06-26 11:31:57 | <hpc> | https://hackage.haskell.org/package/Z-Botan-0.4.0.0/docs/Z-Crypto-Cipher.html#v:runStreamCipher |
| 2021-06-26 11:32:11 | <hpc> | there's an example with the BIO function below that, maybe adapt that? |
| 2021-06-26 11:32:36 | → | tromp joins (~textual@dhcp-077-249-230-040.chello.nl) |
| 2021-06-26 11:33:22 | <hpc> | yeah, it looks like you're support to create an abstract cipher thing, set some stuff up with it, and then call runStreamCipher on your data |
| 2021-06-26 11:34:40 | × | merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 265 seconds) |
| 2021-06-26 11:36:49 | <sshine> | parzema, I suppose decryption depends on how it was encrypted (block or stream). |
| 2021-06-26 11:37:21 | <sshine> | parzema, are you both in charge of encrypting and decrypting? or are you looking to decrypt something that was already encrypted by others in a particular way? |
| 2021-06-26 11:37:29 | <parzema> | just decrypting |
| 2021-06-26 11:37:39 | <parzema> | the latter |
| 2021-06-26 11:39:23 | × | TFL quits (~user@64.114.96.246) (Quit: ERC (IRC client for Emacs 27.2)) |
| 2021-06-26 11:39:58 | × | pavonia quits (~user@user/siracusa) (Quit: Bye!) |
| 2021-06-26 11:41:51 | × | geekosaur quits (~geekosaur@xmonad/geekosaur) (Ping timeout: 250 seconds) |
| 2021-06-26 11:41:56 | <sshine> | parzema, so since Salsa20 is a StreamCipherType, I suppose the streamCipherBIO example is a good starting point. |
| 2021-06-26 11:42:46 | × | noctux quits (~noctux@user/noctux) (Ping timeout: 252 seconds) |
| 2021-06-26 11:42:58 | <sshine> | parzema, it looks like you need to specify the input for setStreamCipherKey and setStreamCipherIV. |
| 2021-06-26 11:43:06 | <oak-> | If I would start implementing crypto stuff with Haskell, I would first have a look in the cryptonite-library, which seems to be quite state-of-the-art |
| 2021-06-26 11:43:24 | → | __monty__ joins (~toonn@user/toonn) |
| 2021-06-26 11:45:24 | → | jumper149 joins (~jumper149@80.240.31.34) |
| 2021-06-26 11:46:15 | <jumper149> | Hi, I was wondering if there is a way to tell, if the dependencies in my cabal file are not up-to-date with Hackage anymore. |
| 2021-06-26 11:46:50 | → | geekosaur joins (~geekosaur@xmonad/geekosaur) |
| 2021-06-26 11:46:58 | <oak-> | It seems to support Salsa20 through https://hackage.haskell.org/package/cryptonite-0.29/docs/Crypto-Cipher-Salsa.html and the block cipher example could probably be easiliy modified to use Salsa20 instead of AES256 https://hackage.haskell.org/package/cryptonite-0.29/docs/Crypto-Tutorial.html#g:3 |
| 2021-06-26 11:49:35 | → | dogu joins (~dogu@84.51.63.109) |
| 2021-06-26 11:50:37 | × | dogu quits (~dogu@84.51.63.109) (Remote host closed the connection) |
| 2021-06-26 11:52:38 | → | noctux joins (~noctux@user/noctux) |
| 2021-06-26 11:53:47 | <maerwald> | jumper149: check out `cabal-bounds` |
| 2021-06-26 11:54:58 | <parzema> | oak- https://pastebin.com/8urm6mE6 |
| 2021-06-26 11:55:02 | <Profpatsch> | jumper149: henlo |
| 2021-06-26 11:55:08 | <parzema> | Seems alot easier/shiorter to do it in python |
| 2021-06-26 11:55:34 | <parzema> | sshine |
All times are in UTC.