switched to spongycastle from bouncycastle. public key and password encryption and decryption are working