[{"data":1,"prerenderedAt":177},["ShallowReactive",2],{"term-p\u002Fprivate-key":3,"related-p\u002Fprivate-key":164},{"id":4,"title":5,"acronym":6,"body":7,"category":147,"description":148,"difficulty":149,"extension":150,"letter":16,"meta":151,"navigation":84,"path":152,"related":153,"seo":158,"sitemap":159,"stem":162,"subcategory":6,"__hash__":163},"terms\u002Fterms\u002Fp\u002Fprivate-key.md","Private Key",null,{"type":8,"value":9,"toc":141},"minimark",[10,15,19,23,26,30,130,134,137],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18],"p",{},"A private key is the secret key that only YOU keep. It can decrypt messages encrypted with your public key, or sign messages to prove they came from you. If someone steals your private key, they can impersonate you completely. Guard it like your bank PIN.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"In asymmetric cryptography, the private key is the secret half of a key pair. It decrypts data encrypted with the corresponding public key and creates digital signatures. Private keys must never be shared or committed to version control.",[11,27,29],{"id":28},"show-me-the-code","Show Me The Code",[31,32,37],"pre",{"className":33,"code":34,"language":35,"meta":36,"style":36},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# Never commit private keys to git!\n# Add to .gitignore:\necho '*.pem\\n*.key\\n*.p12\\n.env' >> .gitignore\n\n# Decrypt with private key\nopenssl rsautl -decrypt -inkey private.pem \\\n  -in message.enc -out message.txt\n","bash","",[38,39,40,49,55,79,86,92,115],"code",{"__ignoreMap":36},[41,42,45],"span",{"class":43,"line":44},"line",1,[41,46,48],{"class":47},"sHwdD","# Never commit private keys to git!\n",[41,50,52],{"class":43,"line":51},2,[41,53,54],{"class":47},"# Add to .gitignore:\n",[41,56,58,62,66,70,73,76],{"class":43,"line":57},3,[41,59,61],{"class":60},"s2Zo4","echo",[41,63,65],{"class":64},"sMK4o"," '",[41,67,69],{"class":68},"sfazB","*.pem\\n*.key\\n*.p12\\n.env",[41,71,72],{"class":64},"'",[41,74,75],{"class":64}," >>",[41,77,78],{"class":68}," .gitignore\n",[41,80,82],{"class":43,"line":81},4,[41,83,85],{"emptyLinePlaceholder":84},true,"\n",[41,87,89],{"class":43,"line":88},5,[41,90,91],{"class":47},"# Decrypt with private key\n",[41,93,95,99,102,105,108,111],{"class":43,"line":94},6,[41,96,98],{"class":97},"sBMFI","openssl",[41,100,101],{"class":68}," rsautl",[41,103,104],{"class":68}," -decrypt",[41,106,107],{"class":68}," -inkey",[41,109,110],{"class":68}," private.pem",[41,112,114],{"class":113},"sTEyZ"," \\\n",[41,116,118,121,124,127],{"class":43,"line":117},7,[41,119,120],{"class":68},"  -in",[41,122,123],{"class":68}," message.enc",[41,125,126],{"class":68}," -out",[41,128,129],{"class":68}," message.txt\n",[11,131,133],{"id":132},"when-youll-hear-this","When You'll Hear This",[16,135,136],{},"\"Never commit the private key to the repo.\" \u002F \"Store the private key in a secrets manager, not in the codebase.\"",[138,139,140],"style",{},"html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":36,"searchDepth":51,"depth":51,"links":142},[143,144,145,146],{"id":13,"depth":51,"text":14},{"id":21,"depth":51,"text":22},{"id":28,"depth":51,"text":29},{"id":132,"depth":51,"text":133},"security","A private key is the secret key that only YOU keep. It can decrypt messages encrypted with your public key, or sign messages to prove they came from you.","intermediate","md",{},"\u002Fterms\u002Fp\u002Fprivate-key",[154,155,156,157],"Public Key","Asymmetric Encryption","Certificate","TLS",{"title":5,"description":148},{"changefreq":160,"priority":161},"weekly",0.7,"terms\u002Fp\u002Fprivate-key","DtAYA7roeoEXyISMV2NIiSrIznKhGTU7XsNUC8vkszU",[165,168,171,174],{"title":155,"path":166,"acronym":6,"category":147,"difficulty":149,"description":167},"\u002Fterms\u002Fa\u002Fasymmetric-encryption","Asymmetric encryption uses two different keys — one to lock (public key), one to unlock (private key).",{"title":156,"path":169,"acronym":6,"category":147,"difficulty":149,"description":170},"\u002Fterms\u002Fc\u002Fcertificate","A certificate is a digital ID card for a website, signed by a trusted authority.",{"title":154,"path":172,"acronym":6,"category":147,"difficulty":149,"description":173},"\u002Fterms\u002Fp\u002Fpublic-key","A public key is like your open mailbox — anyone can drop a message in it (encrypt data with it), but only you have the key to open the box and read it (you...",{"title":157,"path":175,"acronym":157,"category":147,"difficulty":149,"description":176},"\u002Fterms\u002Ft\u002Ftls","TLS (Transport Layer Security) is the updated, actually-secure version of SSL. It's the technology that puts the padlock in your browser's address bar.",1776518303298]