Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aforward/safetybox
Security oriented helper functions for Elixir
https://github.com/aforward/safetybox
Last synced: 7 days ago
JSON representation
Security oriented helper functions for Elixir
- Host: GitHub
- URL: https://github.com/aforward/safetybox
- Owner: aforward
- Created: 2014-12-14T13:11:19.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-10-24T14:41:14.000Z (about 9 years ago)
- Last Synced: 2024-08-10T21:48:47.668Z (3 months ago)
- Language: Elixir
- Size: 185 KB
- Stars: 21
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- freaking_awesome_elixir - Elixir - Security oriented helper functions for Elixir. (Security)
- fucking-awesome-elixir - safetybox - Security oriented helper functions for Elixir. (Security)
- awesome-elixir - safetybox - Security oriented helper functions for Elixir. (Security)
README
Safetybox
=========A set of helper functions for security oriented operations.
Documentation: [Safetybox (HEX)](http://hexdocs.pm/safetybox/)
## Usage
Add Safetybox as a dependency in your `mix.exs` file.
```elixir
def deps do
[ { :safetybox, "~> 0.1" } ]
end
```After you are done, run `mix deps.get` in your shell to fetch and compile Safetybox. Start an interactive Elixir shell with `iex -S mix`.
```iex
iex> alias Safetybox, as: S
nil
iex> pwd = S.encrypt("helloworld")
"fc5e038d38a57032085441e7fe7010b0"
iex> S.is_decrypted("hacker", pwd)
false
iex> S.is_decrypted("helloworld", pwd)
true
```## License
MIT License, see LICENSE
Copyright (c) 2014 Andrew Forward
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.