SecurityHelper class to simplify work with security stuff