updated crypto helper
updated crypto helper