@classmethod
def generate(cls, secret):
    """Generating new container encrypted with secret
        :param secret:
        :type secret: basestring
        :param private_key:
        :type private_key: basestring
        :return: Container
        """
    private_key, public_key = cls.generate_key_pair()
    encrypted_private_key, iv, salt = cls._encrypt(private_key, secret)
    return cls(public_key, encrypted_private_key, iv, salt)
