Added encryption/decryption for ecc. Fixed #2