NaCl
Easy-and-safe-to-use high-level Haskell bindings to NaCl
This library uses <https://libsodium.org Sodium> under the hood,
but only exposes the primitives that are part of the “classic” NaCl
interface. We believe, it is better to be paranoid than sorry.
__Note: this package is experimental and WIP.__
Sodium is more portable, but some people prefer to stick to NaCl.
We agree that it is better to be paranoid than sorry.
That is why, even though this library uses
Sodium under the hood, it only exposes the primitives that
are part of the “classic” NaCl interface.
Sodium provides useful algorithms, that are not part of NaCl,
for example key derivation or random number generation.
If you need them too (you probably do), you should use
</package/crypto-sodium crypto-sodium> instead.
= Public-key cryptography
* Authenticated encryption: "NaCl.Box"
* Scalar multiplication: "NaCl.Scalarmult"
* Public-key signatures: "NaCl.Sign"
= Secret-key cryptography
* Authenticated encryption: "NaCl.Secretbox"
* Unauthenticated streaming encryption: "NaCl.Stream"
* Authentication: "NaCl.Auth"
= Low-level functions
* Hashing: "NaCl.Hash"
* String comparison: "NaCl.Verify"
| version | uploaded | uploader | changes | |
|---|---|---|---|---|
| 0.0.5.0 | 2021-11-22 17:46 UTC | kirelagin | 1 revisions | +11/−13 lines, 6 filesdep ~basedep ~bytestringdep ~memoryPVP ok |
| 0.0.4.0 | 2021-07-30 03:15 UTC | kirelagin | +2194/−711 lines, 30 filesdep +base16PVP: major bump suggested | |
| 0.0.3.1 | 2020-06-12 11:36 UTC | kirelagin | +3/−2 lines, 2 filesPVP ok | |
| 0.0.3.0 | 2020-06-12 11:20 UTC | kirelagin | +387/−24 lines, 6 filesdep −gdpdep ~libsodiumPVP ok | |
| 0.0.2.0 | 2020-05-24 18:35 UTC | kirelagin | +114/−147 lines, 8 filesdep −textdep ~memoryPVP: major bump suggested | |
| 0.0.1.0 | 2020-05-23 22:13 UTC | kirelagin | +810/−0 lines, 10 filesdep +HUnitdep +NaCldep +base |
Dependencies of NaCl-0.0.5.0
HUnit >=0 1.6.1.0 → 1.6.2.0
| 2021-01-19 18:27 UTC | 1.6.2.0 | +48/−42 lines, 5 filesdep ~call-stackPVP: major bump suggested |
| 2020-10-31 12:09 UTC | 1.6.1.0 | +35/−21 lines, 4 filesPVP ok |
| 2017-03-20 01:42 UTC | 1.6.0.0 | +9/−5 lines, 4 filesdep ~basePVP ok |
| 2016-10-16 03:35 UTC | 1.5.0.0 | +47/−27 lines, 5 filesPVP ok |
| 2016-10-07 03:13 UTC | 1.4.0.0 | +761/−778 lines, 12 filesdep +call-stackPVP ok |
showing 5 of 22 versions
base >=4.10 && <4.18 4.17.2.1 → 4.22.1.0 newer than bounds
| 2026-12-01 12:38 UTC | 4.22.1.0 newer than bounds | +388/−6 lines, 9 filesdep ~ghc-internalPVP: major bump suggested |
| 2025-12-19 11:52 UTC | 4.22.0.0 newer than bounds | +886/−215 lines, 28 filesdep ~ghc-internalPVP ok |
| 2026-03-27 12:26 UTC | 4.21.2.0 newer than bounds | +10/−3 lines, 4 filesdep ~ghc-internalPVP ok |
| 2025-12-27 10:31 UTC | 4.21.1.0 newer than bounds | +17/−5 lines, 4 filesdep ~ghc-internalPVP ok |
| 2024-12-16 09:24 UTC | 4.21.0.0 newer than bounds | +1170/−396 lines, 39 filesdep ~ghc-internalPVP ok |
showing 5 of 61 versions
base16 >=0.1.1 && <0.4 0.3.2.1 → 2.0 newer than bounds
| 2026-10-19 17:45 UTC | 2.0 newer than bounds | +1944/−464 lines, 27 filesdep ~basedep ~textPVP ok |
| 2023-06-22 21:04 UTC | 1.0 newer than bounds | +703/−198 lines, 21 filesdep ~basedep ~bytestringdep ~deepseqsetup-changedPVP ok |
| 2022-11-16 21:08 UTC | 0.3.2.1 | +67/−11 lines, 5 filesdep ~basedep ~primitivePVP: minor bump suggested |
| 2022-03-28 19:27 UTC | 0.3.2.0 | +14/−14 lines, 5 filesdep ~basedep ~textPVP ok |
| 2021-12-26 23:45 UTC | 0.3.1.0 | +14/−6 lines, 2 filesdep ~basePVP ok |
showing 5 of 16 versions
bytestring >=0.9 && <0.12 0.11.5.4 → 0.12.2.0 newer than bounds
| 2024-12-06 21:41 UTC | 0.12.2.0 newer than bounds | +538/−437 lines, 44 filesdep ~QuickCheckdep ~basePVP ok |
| 2024-02-16 03:27 UTC | 0.12.1.0 newer than bounds | +3398/−1642 lines, 37 filesdep +sybdep ~basePVP: major bump suggested |
| 2023-08-16 01:53 UTC | 0.12.0.2 newer than bounds | +16/−2 lines, 3 files |
| 2023-08-05 00:03 UTC | 0.12.0.1 newer than bounds | +47/−9 lines, 3 files |
| 2023-07-07 01:45 UTC | 0.12.0.0 newer than bounds | +1459/−520 lines, 21 filesdep +data-array-bytePVP ok |
showing 5 of 49 versions
hedgehog >=0 1.6 → 1.7
| 2025-09-22 20:47 UTC | 1.7 | +50/−26 lines, 5 filesdep ~lifted-asyncdep ~template-haskelldep ~timePVP ok |
| 2025-09-08 12:45 UTC | 1.6 | +87/−63 lines, 4 filesPVP ok |
| 2024-07-24 13:51 UTC | 1.5 | +255/−78 lines, 5 filesdep ~containersdep ~randomdep ~template-haskellPVP ok |
| 2023-08-06 21:48 UTC | 1.4 | +138/−64 lines, 7 filesdep ~ansi-terminaldep ~barbiesdep ~bytestringPVP ok |
| 2023-06-22 11:22 UTC | 1.3 | +152/−29 lines, 11 filesdep +safe-exceptionsdep ~ansi-terminalPVP ok |
showing 5 of 28 versions
libsodium >=1.0.11 && <2 1.0.18.2 → 1.0.18.3
| 2023-03-06 16:51 UTC | 1.0.18.3 | +2326/−1750 lines, 10 files |
| 2021-07-28 09:07 UTC | 1.0.18.2 | +11/−1 lines, 3 files |
| 2020-05-18 13:59 UTC | 1.0.18.1 | +152/−13 lines, 4 filesPVP: minor bump suggested |
| 2020-05-08 12:59 UTC | 1.0.18.0 | +1672/−0 lines, 7 filesdep +basedep +hedgehogdep +libsodium |
memory >=0.14.15 && <0.19 0.17.0 → 0.18.0
| 2022-09-05 01:54 UTC | 0.18.0 | +14/−5 lines, 5 filesdep ~basedep ~ghc-primPVP ok |
| 2022-03-10 01:00 UTC | 0.17.0 | +157/−162 lines, 10 filesdep ~basedep ~ghc-primPVP ok |
| 2021-05-08 14:19 UTC | 0.16.0 | +26/−112 lines, 10 filesdep ~basedep ~ghc-primPVP ok |
| 2019-09-05 04:24 UTC | 0.15.0 | +14/−7 lines, 3 filesdep ~basedep ~basementPVP ok |
| 2018-09-30 16:18 UTC | 0.14.18 | +35/−10 lines, 5 filesPVP ok |
showing 5 of 36 versions
safe-exceptions >=0.1 && <0.2 0.1.7.3 → 0.1.7.4
| 2023-06-26 17:37 UTC | 0.1.7.4 | +143/−65 lines, 3 filesdep ~deepseqPVP: major bump suggested |
| 2022-05-22 08:14 UTC | 0.1.7.3 | +6/−2 lines, 2 filesdep ~transformersPVP ok |
| 2021-07-09 06:46 UTC | 0.1.7.2 | +103/−47 lines, 5 filesdep ~basedep ~exceptionsdep ~transformersPVP: major bump suggested |
| 2020-08-23 13:52 UTC | 0.1.7.1 | +19/−6 lines, 5 filesPVP: major bump suggested |
| 2018-01-18 15:32 UTC | 0.1.7.0 | +31/−18 lines, 3 filesdep ~basedep ~exceptionsPVP: major bump suggested |
showing 5 of 12 versions
tasty >=0 1.5.4 → 1.5.5
| 2026-10-20 23:13 UTC | 1.5.5 | +53/−26 lines, 7 filesdep +terminal-sizePVP ok |
| 2026-03-25 20:04 UTC | 1.5.4 | +332/−166 lines, 22 filesdep −semigroupsPVP ok |
| 2025-01-05 19:52 UTC | 1.5.3 | +36/−11 lines, 3 filesdep ~containersdep ~optparse-applicativePVP: major bump suggested |
| 2024-11-03 00:34 UTC | 1.5.2 | +22/−5 lines, 4 filesdep ~basePVP ok |
| 2024-06-22 10:14 UTC | 1.5.1 | +131/−63 lines, 10 filesdep ~basePVP: major bump suggested |
showing 5 of 76 versions
tasty-hedgehog >=0 1.4.0.1 → 1.4.0.2
| 2023-08-07 06:43 UTC | 1.4.0.2 | +10/−4 lines, 3 filesdep ~basedep ~hedgehogdep ~tastyPVP ok |
| 2023-03-15 09:39 UTC | 1.4.0.1 | +11/−6 lines, 3 filesdep ~basedep ~hedgehogPVP ok |
| 2022-10-24 17:53 UTC | 1.4.0.0 | +23/−15 lines, 3 filesdep ~hedgehogPVP ok |
| 2022-10-05 08:58 UTC | 1.3.1.0 | +18/−11 lines, 3 filesnew-uploaderPVP ok |
| 2022-08-23 06:50 UTC | 1.3.0.0 | +13/−10 lines, 4 filesdep ~hedgehogPVP ok |
showing 5 of 15 versions
tasty-hunit >=0 0.10.1 → 0.10.2
| 2024-06-22 10:14 UTC | 0.10.2 | +15/−7 lines, 4 filesPVP ok |
| 2023-09-10 00:12 UTC | 0.10.1 | +30/−52 lines, 5 filesdep ~basedep ~call-stackdep ~tastynew-uploaderPVP ok |
| 2020-12-18 09:42 UTC | 0.10.0.3 | +55/−10 lines, 4 filesdep ~basePVP ok |
| 2019-05-15 05:50 UTC | 0.10.0.2 | +38/−8 lines, 3 filesdep ~tastyPVP: major bump suggested |
| 2017-12-01 19:24 UTC | 0.10.0.1 | +51/−29 lines, 4 filesPVP: major bump suggested |
showing 5 of 15 versions
Reverse dependencies
1 packages depend on NaCl