The invention provides a resource acquisition method and apparatus, a resource distribution method and apparatus, a resource downloading method and apparatus, a device, and a storage medium, and belongs to the technical field of networks. According to the method and apparatus provided by the invention, an authentication mechanism is imported for a P2P network, when different peer nodes perform communication, the peer nodes use key pairs for encryption, the resources are transmitted in the form of ciphertext in the P2P network, thus avoiding the potential safety hazard if the resources are stolen when being transmitted in the P2P network and greatly improving the security of the P2P network. Moreover, each resource can have a corresponding key pair, the resources of different users can be encrypted by using different key pairs, thereby ensuring that any user uses his own key, cannot decrypt the resources of other users, and cannot access the resources of other users as a result, so thatthe mutual isolation of the resources of different users is achieved. If the method and apparatus are applied to mirror image distribution service in public cloud, a secure mirror image distributionscheme based on the P2P network can be provided, and the isolation of tenements of the public cloud can be ensured.