updated component - added rsa.encrypt(val)