made crypto fnctions private