First try to make lib for crypto