Permutations using bitmasking

Is there any way to get all unique permutations of a string
Example :
abc:
abc
acb
bac
bca
cab
cba

Can we do this using bitmasking ?