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.
Related videos on Youtube
Author by
T Wu
Updated on September 18, 2022Comments
-
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 about 5 yearsYou 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 about 11 yearsJust 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 about 8 yearsIs there any technical limit on the number of recpients? Like a whole company of 100 people?
-
T Wu about 5 yearsThanks for your comment, but I want to know more specific reasons
-
doughgle over 4 yearsSo 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 over 4 yearsThere's one copy of ciphertext and multiple copies of the same symmetric key.