Added unit tests

Added:
* JUnit4 unit tests for EncryptionProvider
* Renamed EncryptionProvider.stringToHash() to
EncryptionProvider.stringToBytes()