Generalize JavaCrypto secret key cryptography.
Extract JavaCryprto functionality for both kind of key pair to proper
package.