massemanet/eper — pull request #17 by mbbx6spp (2013-10-13 21:21:57+00:00)
Title: Remove crypto module deprecations

When compiling with R16B02 the following deprecation warnings were
encountered:

```
src/prf_crypto.erl:36: Warning: crypto:des_cbc_encrypt/3 is deprecated and will be removed in in a future release; use crypto:block_encrypt/4
src/prf_crypto.erl:43: Warning: crypto:des_cbc_decrypt/3 is deprecated and will be removed in in a future release; use crypto:block_decrypt/4
src/prf_crypto.erl:46: Warning: crypto:md5/1 is deprecated and will be removed in in a future release; use crypto:hash/2
```

Since I use `warnings_as_errors` erlc option I needed to work around these
deprecation warnings for newer versions of Erlang (R16B+, I believe). I did
this using a `rebar.config.script` and the Erlang preprocessor's `-ifdef`
construct. Therefore, it should work for previous versions as well as newer
versions of Erlang.