В случае использования API используются методы ISecurity.CompressTo и ISecurity.Decompress