I am using dbms_crypto.encrypt function in my oracle procedure for encryption of passwords. I have connected to oracle as :
connect sqlplus as sysdba
and then granted permission as :
grant execute on sys.dbms_crypto to myuser;
And then i can use dbms_crypto in my procedure. But i would like to know how can i check in my database whether the permission are granted or not for dbms_crypto ? Because i have to use this procedure in another database and does not know whether that database has grant permission or not for dbms_crypto.