code for basic crypto algorithms