working with shared secret
working example with rsa/des encryption