replace static aes implementation with secure rsa implementation