Mathematical models for information security