IT & Engineering
Occasionally we all find the need to encrypt files as part of our job. The need to encrypt files comes up for a variety of reasons: the need to commit sensitive information into a repository, the need to transfer information over an insecure medium, or the need to leave something on disk that requires stronger access controls than the operating system provides.
While a variety of options exist, most of them are clunky, confusing, or worse yet, give a false sense of security. For example GPG is often recommended to encrypt files, but it ships with a variety of outdated ciphers and usability has never been it’s strong suit. OpenSSL comes with a convenient command line tool called “openssl enc”, but it actually doesn’t support any form of authenticated encryption.
Mailgun has written a simple tool called lemmacmd that uses NaCl and PBKDF#2 under the hood to encrypt and decrypt small files on disk. It gets a lot of things right:
lemmacmd encrypt -in foo.txt -out foo.txt.encIf you are interested in checking out the source or contributing, it’s available via GitHub as is the latest release.
As always, if you find any issues (or security vulnerabilities!) please reach out to us via GitHub.
Sign Up
When you visit any web site, it may store or retrieve information on your browser, mostly in the form of cookies. This information might be about you, your preferences or your device and is mostly used to make the site work as you expect it to. The information does not usually directly identify you, but it can give you a more personalised web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies. Click on the different category headings to find out more and change our default settings. However, blocking some types of cookies may impact your experience of the site and the services we are able to offer.
Cookie Statement
These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site will not then work. These cookies do not store any personally identifiable information.
Cookie details
| Cookie Subgroup | Cookies | Cookies used |
|---|---|---|
| documentation.mailgun.com | _cfuvid , __cfruid | First Party |
| .mailgun.com | OptanonConsent | First Party |
| mailgun.com | actualOptanonConsent , apt.sid , OptanonAlertBoxClosed , mail_session | First Party |
| app.mailgun.com | connect.sid , SERVERID | First Party |
| hello.mailgun.com | uvts , __cf_bm | First Party |
| m.stripe.com | m | Third Party |
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies we will not know when you have visited our site, and will not be able to monitor its performance.
Cookie details
| Cookie Subgroup | Cookies | Cookies used |
|---|---|---|
| hello.mailgun.com | ubpv , ubvs | First Party |
| dev.mailgun.com | _an_uid | First Party |
| app.mailgun.com | rl_page_init_referring_domain , rl_anonymous_id , rl_group_trait | First Party |
| mailgun.com | _vwo_ds , test_rudder_cookie , _vis_opt_s , rl_group_id , rl_user_id , _ga , rl_session , rl_page_init_referrer , ubvt , _vwo_uuid , apt.uid , optimizelyEndUserId , _gat , _vwo_sn , _ga_xxxxxxxxxx , _gid , _uetvid , _vis_opt_test_cookie | First Party |
| hello.learn.mailgun.com | visitor_id | Third Party |
These cookies enable the website to provide enhanced functionality and personalisation. They may be set by us or by third party providers whose services we have added to our pages. If you do not allow these cookies then some or all of these services may not function properly.
Cookie details
| Cookie Subgroup | Cookies | Cookies used |
|---|---|---|
| hello.mailgun.com | _gd_session | First Party |
| mailgun.com | __q_state_zkTi4FmbUJniF8K2 , _vwo_uuid_v2 , apt.temp-xxxxxxxxxxxxxxxxxx , __tld__ | First Party |
| demo.mailgun.com | _gd_visitor | First Party |
| dev.mailgun.com | _pin_unauth , __uvt | First Party |
| app.mailgun.com | __stripe_mid , __stripe_sid | First Party |
| mailgun.zendesk.com | _cfuvid, __cf_bm, __cfruid | Third Party |
| vimeo.com | _cfuvid, __cf_bm, vuid | Third Party |
| producthunt.com | __cf_bm | Third Party |
| goldcast.io | __cf_bm | Third Party |
These cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising.
Cookie details
| Cookie Subgroup | Cookies | Cookies used |
|---|---|---|
| www.mailgun.com | pardot | First Party |
| app.mailgun.com | rl_trait | First Party |
| hello.mailgun.com | visitor_id | First Party |
| mailgun.com | _gat_gtag_xxxxxxxxxxxxxxxxxxxxxxxxxxx , _uetsid , _fbp , _tt_enable_cookie , _ttp , _rdt_uuid , __q_domainTest , _gcl_au | First Party |
| linkedin.com | bcookie, lidc, li_gc | Third Party |
| pi.pardot.com | pardot, lpv830283 | Third Party |
| bing.com | MSPTC, MUID | Third Party |
| hello.learn.mailgun.com | pardot | Third Party |
| pardot.com | visitor_id | Third Party |
| doubleclick.net | IDE, test_cookie | Third Party |
| youtube.com | VISITOR_PRIVACY_METADATA, VISITOR_INFO1_LIVE, __Secure-xxxxxxx | Third Party |
| www.google.com | _GRECAPTCHA | Third Party |
These cookies are set by a range of social media services that we have added to the site to enable you to share our content with your friends and networks. They are capable of tracking your browser across other sites and building up a profile of your interests. This may impact the content and messages you see on other websites you visit. If you do not allow these cookies you may not be able to use or see these sharing tools.
Cookie details
| Cookie Subgroup | Cookies | Cookies used |
|---|---|---|
| youtube.com | YSC | Third Party |