HsOpenSSL - (Part of) OpenSSL binding for Haskell

日本語 | English

Go back to index

About HsOpenSSL

HsOpenSSL is a (part of) OpenSSL binding for Haskell. It can generate RSA keys, read and write PEM files, generate message digests, sign and verify messages, encrypt and decrypt messages.

Download

Archive

HackageDB: HsOpenSSL

Darcs Repository

% darcs get --partial http://ccm.sherry.jp/darcs/HsOpenSSL

Examples

GenRSAKey.hs
It generates an RSA keypair, then shows the content of it and outputs it in PEM format.
HelloWorld.hs
First it generates an RSA keypair, encrypts a randomly generated symmetric key, encrypts some string with the symmetric key. Then it decodes and prints it.
PKCS7.hs
First it generates an RSA keypair and an X.509 certificate, then it creates a PKCS#7 signedData structure by signing some string. Next it verifies the signature and displays the string contained.

Documentation

The documentation of HsOpenSSL is here.

License

HsOpenSSL is in the public domain. See the following page for more details.

Creative Commons Public Domain Dedication