mode: :des3_ecb, :des3_cbc, :des_ede3
key: iodata, must be a multiple of 64 bits (8 bytes).
ivec: an arbitrary initializing vector, must be a multiple of 64 bits (8 bytes).
data: iodata, must be a multiple of 64 bits (8 bytes).
TripleDes.encrypt(data, key, mode)
TripleDes.decrypt(data, key, mode)
TripleDes.encrypt(data, key, ivec, mode)
TripleDes.decrypt(data, key, ivec, mode)
If available in Hex, the package can be installed
by adding triple_des
to your list of dependencies in mix.exs
:
def deps do
[{:triple_des, "~> 1.0.0"}]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/triple_des.