support for 2.3.x and 3.1.x
Merge pull request #78 from attr-encrypted/feature/backwards-compatability

support for 2.3.x and 3.1.x - fixes #77