Unavailable. Nobody can download this version any more, with elm or with the Lamdera compiler: github.com/HAN-ASD-DT/rsa is gone (deleted or private); Software Heritage has not archived the repo; no fork with tag 1.0.1 found (60 same-name repos checked); no cached copy. Use another version.
The RSA crypto-system in Elm.
The private keys of the RSA crypto-system.
Uses to decrypt a message.
The public keys of the RSA crypto-system.
Used to encrypt a message.
Encrypts a message.
Decrypts a message.
The reason why a key-pair generation can go wrong.
Returns a String detailing why the key-pair generation failed.
let
(public, private) = generate 37 79
in
encrypt public value
Generates a key-pair for the RSA crypto-system.
The arguments should be two primes. Note that the primes should remain private.