packages feed

longshot 0.1.0.5 → 0.1.0.6

raw patch · 3 files changed

+45/−34 lines, 3 filesdep ~docoptPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: docopt

API changes (from Hackage documentation)

Files

ChangeLog.md view
@@ -16,3 +16,7 @@ * Deep search performance improvement * Clean up unnecessary arguments * Fixed typos++## 0.1.0.6+* Default resolver version bump to lts-16.27 (ghc-8.8.4)+* use docopt 0.7.0.6+ (fixed issue causing compilation error with below ghc-8.8.2)
longshot.cabal view
@@ -1,13 +1,11 @@ cabal-version: 1.12 --- This file has been generated from package.yaml by hpack version 0.33.0.+-- This file has been generated from package.yaml by hpack version 0.34.4. -- -- see: https://github.com/sol/hpack------ hash: c10047924761d0fcff4dbb2e8ff88afe21db7e63864eacee60ac943577718ef3  name:           longshot-version:        0.1.0.5+version:        0.1.0.6 synopsis:       Fast Brute-force search using parallelism description:    Longshot enables to search for preimages from a given hash value                 using a brute-force method based on parallelism.@@ -49,18 +47,21 @@       Paths_longshot   hs-source-dirs:       src-  default-extensions: TemplateHaskell KindSignatures DataKinds+  default-extensions:+      TemplateHaskell+      KindSignatures+      DataKinds   build-depends:       base >=4.12.0 && <5     , base16-bytestring >=0.1.0 && <0.2     , blake2 >=0.3.0 && <0.4-    , blake3 >=0.2 && <0.3+    , blake3 ==0.2.*     , bytestring >=0.10.8 && <0.11-    , containers >=0.6 && <0.7+    , containers ==0.6.*     , cryptohash-sha256 >=0.11.101 && <0.12     , cryptonite >=0.25     , deepseq >=1.4.4 && <1.5-    , docopt >=0.7.0 && <0.8+    , docopt >=0.7.0.6     , memory >=0.14.0 && <0.16     , parallel >=3.2.2 && <3.3     , template-haskell >=2.14.0 && <2.17@@ -72,19 +73,22 @@       Paths_longshot   hs-source-dirs:       app-  default-extensions: TemplateHaskell KindSignatures DataKinds+  default-extensions:+      TemplateHaskell+      KindSignatures+      DataKinds   ghc-options: -threaded -rtsopts -with-rtsopts=-N -dynamic -feager-blackholing -g0 -eventlog   build-depends:       base >=4.12.0 && <5     , base16-bytestring >=0.1.0 && <0.2     , blake2 >=0.3.0 && <0.4-    , blake3 >=0.2 && <0.3+    , blake3 ==0.2.*     , bytestring >=0.10.8 && <0.11-    , containers >=0.6 && <0.7+    , containers ==0.6.*     , cryptohash-sha256 >=0.11.101 && <0.12     , cryptonite >=0.25     , deepseq >=1.4.4 && <1.5-    , docopt >=0.7.0 && <0.8+    , docopt >=0.7.0.6     , longshot     , memory >=0.14.0 && <0.16     , parallel >=3.2.2 && <3.3@@ -98,19 +102,22 @@       Paths_longshot   hs-source-dirs:       test-  default-extensions: TemplateHaskell KindSignatures DataKinds+  default-extensions:+      TemplateHaskell+      KindSignatures+      DataKinds   ghc-options: -threaded -rtsopts -with-rtsopts=-N   build-depends:       base >=4.12.0 && <5     , base16-bytestring >=0.1.0 && <0.2     , blake2 >=0.3.0 && <0.4-    , blake3 >=0.2 && <0.3+    , blake3 ==0.2.*     , bytestring >=0.10.8 && <0.11-    , containers >=0.6 && <0.7+    , containers ==0.6.*     , cryptohash-sha256 >=0.11.101 && <0.12     , cryptonite >=0.25     , deepseq >=1.4.4 && <1.5-    , docopt >=0.7.0 && <0.8+    , docopt >=0.7.0.6     , longshot     , memory >=0.14.0 && <0.16     , parallel >=3.2.2 && <3.3
src/Crypto/Longshot/Internal.hs view
@@ -42,23 +42,23 @@ -- | Brute-force search only for a given exact length -- -- @--- ---------------------------------------------------------------------------------     size | Preimage length to search--- ---------------------------------------------------------------------------------    chars | Given character set like "0123456789"--- ---------------------------------------------------------------------------------      hex | Given hex-string like "17da1ae431f965d839ec8eb93087fb2b"--- ---------------------------------------------------------------------------------   hasher | Hash functions in 'Hasher' module. Get it using 'getHasher'--- ---------------------------------------------------------------------------------  numBind | Number of bound variables defined by search length and prefix size--- ---------------------------------------------------------------------------------   runPar | A partially applied function for parallel execution--- --------------------------------------------------------------------------------- prefixes | All possible combinations of given prefix characters.---          | The search space is equally partitioned based on these prefixes.---          | length of prefixes == number of sparks--- ------------------------------------------------------------------------------+-- +----------+----------------------------------------------------------------------++-- |     size | Preimage length to search                                            |+-- +----------+----------------------------------------------------------------------++-- |    chars | Given character set like "0123456789"                                |+-- +----------+----------------------------------------------------------------------++-- |      hex | Given hex-string like "17da1ae431f965d839ec8eb93087fb2b"             |+-- +----------+----------------------------------------------------------------------++-- |   hasher | Hash functions in 'Hasher' module. Get it using 'getHasher'          |+-- +----------+----------------------------------------------------------------------++-- |  numBind | Number of bound variables defined by search length and prefix size   |+-- +----------+----------------------------------------------------------------------++-- |   runPar | A partially applied function for parallel execution                  |+-- +----------+----------------------------------------------------------------------++-- | prefixes | All possible combinations of given prefix characters.                |+-- |          | The search space is equally partitioned based on these prefixes.     |+-- |          | length of prefixes == number of sparks                               |+-- +----------+----------------------------------------------------------------------+ -- @ -- bruteforce :: Int -> String -> String -> Hasher -> Maybe String@@ -81,7 +81,7 @@   | numBind `elem` [0 .. maxNumBind] = $( funcList ) !! numBind   | otherwise = errorWithoutStackTrace "Not available search length" --- | Deep Brute-force search including less than a given search size+-- | Incrementally searches without knowing the exact length of search -- -- See the 'bruteforce' function for the arguments used --