PGP encrypt single message for multiple recipients

120

Yes, it's possible – practically all PGP software will let you add multiple recipients when encrypting; no additional configuration is needed.

Screenshot of a "recipients" window I grabbed off the googles

Share:
120

Related videos on Youtube

T Wu
Author by

T Wu

Updated on September 18, 2022

Comments

  • T Wu
    T Wu over 1 year

    When i use the @WebListener and @Service in the same class, the methods in the class will run twice. Why is that?

    Example code:

    @WebListener
    @Service
    public class WebContextListener implements ServletContextListener {
    
        private static final Log logger = LogFactory.getLog(WebContextListener.class);
    
    
        @Override
        public void contextInitialized(ServletContextEvent sce) {
            ServletContext servletContext = sce.getServletContext();
            logger.info("web listener 启动,为什么会执行两次呢,Spring做了什么处理吗");
            logger.info("web listener runing,why this method ran twice,What did Spring do?");
    
        }
    
        @Override
        public void contextDestroyed(ServletContextEvent sce) {
    
        }
    }
    
    • T Wu
      T Wu about 5 years
      You are right. Thank you for reminding me that I will update the question later. By the way, the framework is Springboot 2.1.3
  • vonbrand
    vonbrand about 11 years
    Just to add, what PGP does is generate a key for a symmetric cipher, and cipher that for each recipient with their public key. So the message for many recipients isn't much larger than that for 1.
  • Alex
    Alex about 8 years
    Is there any technical limit on the number of recpients? Like a whole company of 100 people?
  • T Wu
    T Wu about 5 years
    Thanks for your comment, but I want to know more specific reasons
  • doughgle
    doughgle over 4 years
    So the symmetric key is encrypted for each recipient with their public key. Does each receive a different ciphertext or the same ciphertext with a header length proportional to the number of recipients?
  • user1686
    user1686 over 4 years
    There's one copy of ciphertext and multiple copies of the same symmetric key.