Implementation of the Elliptic Curve based Encryption in Java