samprotas / hs-triplesec Goto Github PK
View Code? Open in Web Editor NEWTripleSec is a simple, triple-paranoid, symmetric encryption library
License: BSD 3-Clause "New" or "Revised" License
TripleSec is a simple, triple-paranoid, symmetric encryption library
License: BSD 3-Clause "New" or "Revised" License
Preprocessing library for triplesec-0.2.2.1..
Building library for triplesec-0.2.2.1..
[1 of 9] Compiling Crypto.TripleSec.Internal ( src/Crypto/TripleSec/Internal.hs, dist/build/Crypto/TripleSec/Internal.o, dist/build/Crypto/TripleSec/Internal.dyn_o )
[2 of 9] Compiling Crypto.TripleSec.Constants ( src/Crypto/TripleSec/Constants.hs, dist/build/Crypto/TripleSec/Constants.o, dist/build/Crypto/TripleSec/Constants.dyn_o )
[3 of 9] Compiling Crypto.TripleSec.Types ( src/Crypto/TripleSec/Types.hs, dist/build/Crypto/TripleSec/Types.o, dist/build/Crypto/TripleSec/Types.dyn_o )
[4 of 9] Compiling Crypto.TripleSec.Utils ( src/Crypto/TripleSec/Utils.hs, dist/build/Crypto/TripleSec/Utils.o, dist/build/Crypto/TripleSec/Utils.dyn_o )
src/Crypto/TripleSec/Utils.hs:11:1: warning: [-Wunused-imports]
The import of ‘Data.Monoid’ is redundant
except perhaps to import instances from ‘Data.Monoid’
To import instances alone, use: import Data.Monoid()
|
11 | import Data.Monoid ((<>))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[5 of 9] Compiling Crypto.TripleSec.Class ( src/Crypto/TripleSec/Class.hs, dist/build/Crypto/TripleSec/Class.o, dist/build/Crypto/TripleSec/Class.dyn_o )
src/Crypto/TripleSec/Class.hs:75:5: error:
Variable not in scope: when :: Bool -> m2 a4 -> m a5
|
75 | when (I.length pass == 0) $ throwError $ CipherInitException ZeroLengthPassword
| ^^^^
src/Crypto/TripleSec/Class.hs:121:5: error:
Variable not in scope: when :: Bool -> m3 a6 -> m a7
|
121 | when (I.length plaintext == 0) $ throwError $ EncryptionException ZeroLengthPlaintext
| ^^^^
src/Crypto/TripleSec/Class.hs:153:3: error:
Variable not in scope: when :: Bool -> m1 a2 -> m a3
|
153 | when (providedSHA512 /= hmacSHA512 cipher toMac) $ throwError $ DecryptionException InvalidSha512Hmac
| ^^^^
src/Crypto/TripleSec/Class.hs:154:3: error:
Variable not in scope: when :: Bool -> m0 a0 -> m a1
|
154 | when (providedSHA3 /= hmacKeccak512 cipher toMac) $ throwError $ DecryptionException InvalidKeccakHmac
| ^^^^
http://yannesposito.com/Scratch/en/blog/Haskell-Tutorials--a-tutorial/
Would be helpful to show examples in both IO
and ExceptT TripleSecException (RandT Identity)
.
Haven't looked at the state of these. They'll almost certainly need some work.
TravisCI seems to be what Haskell projects use.
Hi,
We've released version 4 of Triplesec, detailed at https://keybase.io/triplesec. Only differences are dropping the Twofish phase and switching from Keccak to the SHA3 standard. If you like, you can add support for encrypting and decrypting v4 ciphertexts to your library. Let me know if you have any questions about the spec.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.