basic crypto proto