Added encryptFromString()/decryptToString() functions.

Hi
Please consider this pull request that adds support for encrypting/decrypting strings.