* Improve code that determines the type of encryption that is used according