Popularity
2.9
Declining
Activity
0.0
Stable
17
1
4
Monthly Downloads: 0
Programming language: Elixir
License:
Tags:
Cryptography
exgpg alternatives and similar packages
Based on the "Cryptography" category.
Alternatively, view exgpg alternatives based on common mentions on social networks and blogs.
-
comeonin
Password hashing specification for the Elixir programming language -
nimble_totp
A tiny Elixir library for time-based one time passwords (TOTP) -
pot
POT is an Erlang library for generating Google Authenticator compatible one time passwords -
one_time_pass_ecto
No longer maintained - One-time password library with Ecto support (for Elixir) -
siphash-elixir
An Elixir implementation of the SipHash cryptographic hash family -
ntru_elixir
Elixir wrapper around libntru. NTRU is a post quantum cryptography algorithm. -
crypto_rsassa_pss
RSASSA-PSS Public Key Cryptographic Signature Algorithm for Erlang and Elixir. -
ex_bcrypt
Elixir wrapper for the OpenBSD bcrypt password hashing algorithm
Access the most powerful time series database as a service
Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.
Promo
www.influxdata.com
Do you think we are missing an alternative of exgpg or a related project?
Popular Comparisons
README
Exgpg
Use gpg from elixir
Installation
Add this to your mixfile
{ :exgpg, "~> 0.0.3" },
Install goon and put it on your PATH.
If you can run goon
and get a usage output, then porcelain and thereby exgpg will be able to use it.
Usage
Symmetric
#proc is a Porcelain.Process. The `out` key is a stream of gpg's output.
proc = Exgpg.symmetric("test string", [passphrase: "hunter2"])
# this will be a binary of the encrypted "test string"
encrypted = Enum.into(proc.out, "")
proc = Exgpg.decrypt(encrypted, [passphrase: "hunter2"])
#put the decrypt stream into a string
Enum.into(proc.out, "") # this will be "test string"
Asymmetric
#proc is a Porcelain.Process. The `out` key is a stream of gpg's output. this
#method allows for direct piping..
defp output(proc), do: proc.out
out = "hello world"
|> Exgpg.encrypt([{:recipient, "[email protected]"}, {keyring: "alice.pub"}])
|> output
|> Exgpg.decrypt([secret_keyring: "alice.sec", keyring: "alice.pub"])
|> output
|> Enum.into("")
IO.puts out # this will print "hello world"
Generate a keypair
{:ok, proc} = Exgpg.gen_key(
[
key_type: "DSA",
key_length: "1024",
subkey_type: "ELG-E",
subkey_length: "1024",
name_real: "alice",
name_email: "[email protected]",
expire_date: "0",
ctrl_pubring: "alice.pub", #pub ring will be written to alice.pub
ctrl_secring: "alice.sec", #sec ring will be written to alice.sec
ctrl_commit: "",
ctrl_echo: "done"
]
)
proc.status #will give the status code
proc.err #will give an error description, if one occurred
Options are passed directly to gpg
, with a transformation to change the the key_with_underscore
keylist convention in elixir to the --key-with-dashes
. Most options should Just Work™.