encrypt r0 works