Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mschout/libsrs2xx
An Email Sender Rewriting Scheme (SRS) library for C++
https://github.com/mschout/libsrs2xx
Last synced: about 1 month ago
JSON representation
An Email Sender Rewriting Scheme (SRS) library for C++
- Host: GitHub
- URL: https://github.com/mschout/libsrs2xx
- Owner: mschout
- License: bsd-3-clause
- Created: 2014-09-19T21:47:46.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-24T23:58:21.000Z (over 10 years ago)
- Last Synced: 2023-04-11T20:50:39.635Z (over 1 year ago)
- Language: C++
- Size: 203 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog
- License: LICENSE
Awesome Lists containing this project
README
# Libsrs2xx
## Welcome
Libsrs2xx is a C++11 implementation of the Mail::SRS implementation of Email
Sender Rewriting Scheme (SRS).## Building and installation
The following packages are required to build libsrs2xx:
- A C++11 compliant compiler
- Boost libraries (only needed to build and run tests, not needed at runtime)
- GNU Autoconf and automakeIf building from git, you must run `./autogen.sh' first
```
./configure
make
make install
```If you wish to run the tests, simply run the `./test/test' binary after `make'
## Usage
For the Guarded scheme (the default for Mail::SRS reference implementation):
```
#include
....
srs2::guarded srs("my secret");std::string srsaddress = srs.forward("[email protected]", "bounces.forwarder.com");
std::string orig = srs.reverse(srsaddress);
```The other schemes available can be used by simply using a different class other
than srs2::guarded. The available schemes are:- Shortcut: implemented in `srs2::shortcut'
- Reversible: implemented in `srs2::reversible'## Copying
This software is licensed under the BSD 3-Clause license. For details see the
file LICENSE included with the distribution.