test code how to use rsa