How to Install and Uninstall ghc-cryptohash Package on openSUSE Leap

Last updated: May 03,2024

1. Install "ghc-cryptohash" package

This is a short guide on how to install ghc-cryptohash on openSUSE Leap

$ sudo zypper refresh $ sudo zypper install ghc-cryptohash

2. Uninstall "ghc-cryptohash" package

Please follow the steps below to uninstall ghc-cryptohash on openSUSE Leap:

$ sudo zypper remove ghc-cryptohash

3. Information about the ghc-cryptohash package on openSUSE Leap

Information for package ghc-cryptohash:
---------------------------------------
Repository : Main Repository
Name : ghc-cryptohash
Version : 0.11.9-bp155.3.15
Arch : x86_64
Vendor : openSUSE
Installed Size : 337.5 KiB
Installed : No
Status : not installed
Source package : ghc-cryptohash-0.11.9-bp155.3.15.src
Upstream URL : https://hackage.haskell.org/package/cryptohash
Summary : Collection of crypto hashes, fast, pure and practical
Description :
DEPRECATED: this library is still fully functional, but please use cryptonite
for new projects and convert old one to use cryptonite. This is where things
are at nowadays.
A collection of crypto hashes, with a practical incremental and one-pass, pure
APIs, with performance close to the fastest implementations available in other
languages.
The implementations are made in C with a haskell FFI wrapper that hide the C
implementation.
Simple examples using the unified API:
> import Crypto.Hash > > sha1 :: ByteString -> Digest SHA1 > sha1 = hash > >
hexSha3_512 :: ByteString -> String > hexSha3_512 bs = show (hash bs :: Digest
SHA3_512)
Simple examples using the module API:
> import qualified Crypto.Hash.SHA1 as SHA1 > > main = putStrLn $ show $
SHA1.hash (Data.ByteString.pack [0..255])
> import qualified Crypto.Hash.SHA3 as SHA3 > > main = putStrLn $ show $ digest
> where digest = SHA3.finalize ctx > ctx = foldl' SHA3.update iCtx (map
Data.ByteString.pack [ [1,2,3], [4,5,6] ] > iCtx = SHA3.init 224.

5. The same packages on other Linux Distributions