> if i have a MAC (message authentication code) created with
> javax.crypto.Mac, is there some way of encrypting this MAC using a RSA
> with a public key?
Yes, but why would you want to?
> whats the difference beetween a digest and a MAC?
> can i use the digest instead?
A MAC is formed with a secret key. Only those who know the key can
form a valid MAC or verify an existing MAC. A digest is unkeyed.
--Mike Amling