Generate a master key and salt for encrypting video content. Store these securely — losing them means losing access to all encrypted content.
blindcast keygen generates a cryptographically random master key and salt. These are the only two secrets you need to protect — all content encryption keys are derived from them using HKDF.
Store the master key and salt in a secret manager (AWS Secrets Manager, HashiCorp Vault, etc.). Never commit them to version control. Losing the master key means you cannot decrypt any content encrypted with it — there is no recovery mechanism.
What these are
Master key (32 bytes): The root secret from which all content keys are derived. Used by blindcast encrypt, blindcast serve, and the production key server.
Salt (32 bytes): A random value used as input to HKDF alongside the master key. Same salt must be used everywhere the master key is used.
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"BlindCast","colors":{"primary":"#6366f1","light":"#818cf8","dark":"#4f46e5"},"logo":{"light":"https://mintcdn.com/stillwaterstudio/gwkQ_H6ySS15AoKG/logo/light.svg?fit=max\u0026auto=format\u0026n=gwkQ_H6ySS15AoKG\u0026q=85\u0026s=8d7ce2337dcfa5512cbd46720cb22051","dark":"https://mintcdn.com/stillwaterstudio/gwkQ_H6ySS15AoKG/logo/dark.svg?fit=max\u0026auto=format\u0026n=gwkQ_H6ySS15AoKG\u0026q=85\u0026s=efdadcec987ceeae77bc75f81d7747e0"},"favicon":"/favicon.svg","styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"stillwaterstudio","hasAudioNarration":false,"actualSubdomain":"stillwaterstudio","customDomains":["docs.blindcast.dev"],"gitSource":{"type":"github","owner":"gunwooterry","repo":"blindcast","deployBranch":"main","contentDirectory":"packages/docs","isPrivate":true,"mountPath":"","label":"","_id":"6b10d65d9ffae5051c40d421"},"entitlements":{},"buildId":"6ae948a94e1e9c8ee81b1dab:success","clientVersion":"0.0.4428","searchFilterCounts":[{"language":"default","tag":"CLI","count":6},{"language":"default","tag":"Server","count":6},{"language":"default","tag":"Key Server","count":5},{"language":"default","tag":"Player","count":5},{"language":"default","tag":"Going to Production","count":4},{"language":"default","tag":"Uploader","count":4},{"language":"default","tag":"Getting Started","count":3},{"language":"default","tag":"Introduction","count":3},{"language":"default","tag":"Reference","count":2},{"language":"default","tag":"Serverless","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"cli/keygen","slug":"/cli/keygen","pageMetadata":{"title":"blindcast keygen","description":"Generate a master key and salt for encrypting video content. Store these securely — losing them means losing access to all encrypted content.","href":"/cli/keygen","hidden":false},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Generate a master key and salt for encrypting video content. Store these securely — losing them means losing access to all encrypted content.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[_jsx(_components.code,{children:`blindcast keygen`}),` generates a cryptographically random master key and salt. These are the only two secrets you need to protect — all content encryption keys are derived from them using `,_jsx(_components.a,{href:`/introduction/architecture-overview#key-hierarchy`,children:`HKDF`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`usage`,children:`Usage`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`blindcast`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` keygen`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`output`,children:`Output`}),`\n`,_jsx(CodeBlock,{numberOfLines:`3`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`BLINDCAST_MASTER_KEY=a1b2c3d4e5f6... (64 hex chars = 32 bytes)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`BLINDCAST_SALT=f6e5d4c3b2a1... (64 hex chars = 32 bytes)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`The output is in `,_jsx(_components.code,{children:`KEY=VALUE`}),` format so you can pipe it directly into a `,_jsx(_components.code,{children:`.env`}),` file:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`blindcast`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` keygen`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` >`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` .env`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`json-output`,children:`JSON output`}),`\n`,_jsx(_components.p,{children:`For scripting and CI/CD:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`blindcast`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` keygen`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --json`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"masterKey\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"a1b2c3d4e5f6...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"salt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"f6e5d4c3b2a1...\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`flags`,children:`Flags`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Flag`}),_jsx(_components.th,{children:`Description`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--json`})}),_jsx(_components.td,{children:`Output as JSON instead of env vars`})]})})]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Store the master key and salt in a secret manager (AWS Secrets Manager, HashiCorp Vault, etc.). Never commit them to version control. Losing the master key means you cannot decrypt any content encrypted with it — there is no recovery mechanism.`})}),`\n`,_jsx(Heading,{level:`2`,id:`what-these-are`,children:`What these are`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Master key`}),` (32 bytes): The root secret from which all content keys are derived. Used by `,_jsx(_components.code,{children:`blindcast encrypt`}),`, `,_jsx(_components.code,{children:`blindcast serve`}),`, and the production key server.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Salt`}),` (32 bytes): A random value used as input to HKDF alongside the master key. Same salt must be used everywhere the master key is used.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/introduction/zero-knowledge-explained`,children:`Zero-Knowledge Explained`}),` for more on how these fit into the trust model.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"blindcast keygen","description":"Generate a master key and salt for encrypting video content. Store these securely — losing them means losing access to all encrypted content.","href":"/cli/keygen","hidden":false}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Usage","slug":"usage","depth":2,"children":[]},{"title":"Output","slug":"output","depth":2,"children":[]},{"title":"JSON output","slug":"json-output","depth":2,"children":[]},{"title":"Flags","slug":"flags","depth":2,"children":[]},{"title":"What these are","slug":"what-these-are","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"stillwaterstudio","siteName":"BlindCast","title":"blindcast keygen - BlindCast","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-02-27T03:01:01.479Z","originalFileLocation":"cli/keygen.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Generate a master key and salt for encrypting video content. Store these securely — losing them means losing access to all encrypted content.\">\u003cmeta data-mint-head name=\"application-name\" content=\"BlindCast\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/stillwaterstudio/865jUXWyg45zLT1s/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/stillwaterstudio/865jUXWyg45zLT1s/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/stillwaterstudio/865jUXWyg45zLT1s/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/stillwaterstudio/865jUXWyg45zLT1s/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/stillwaterstudio/865jUXWyg45zLT1s/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/stillwaterstudio/865jUXWyg45zLT1s/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/stillwaterstudio/865jUXWyg45zLT1s/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/stillwaterstudio/865jUXWyg45zLT1s/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/stillwaterstudio/865jUXWyg45zLT1s/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"blindcast keygen - BlindCast\">\u003cmeta data-mint-head property=\"og:description\" content=\"Generate a master key and salt for encrypting video content. Store these securely — losing them means losing access to all encrypted content.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"BlindCast\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.blindcast.dev/cli/keygen\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://stillwaterstudio.mintlify.site/_mintlify/api/og/v2?division=CLI\u0026amp;title=blindcast+keygen\u0026amp;description=Generate+a+master+key+and+salt+for+encrypting+video+content.+Store+these+securely+%E2%80%94+losing+them+means+losing+access+to+all+encrypted+content.\u0026amp;theme=16717094e78f745cc65ef082\u0026amp;signature=d592c9903a0bb123bc6f71508356f231011aae0281efb5490c82741125a803fc\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"blindcast keygen - BlindCast\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Generate a master key and salt for encrypting video content. Store these securely — losing them means losing access to all encrypted content.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://stillwaterstudio.mintlify.site/_mintlify/api/og/v2?division=CLI\u0026amp;title=blindcast+keygen\u0026amp;description=Generate+a+master+key+and+salt+for+encrypting+video+content.+Store+these+securely+%E2%80%94+losing+them+means+losing+access+to+all+encrypted+content.\u0026amp;theme=16717094e78f745cc65ef082\u0026amp;signature=d592c9903a0bb123bc6f71508356f231011aae0281efb5490c82741125a803fc\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/stillwaterstudio/865jUXWyg45zLT1s/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"BlindCast\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6366f1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.blindcast.dev/cli/keygen\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/cli/keygen.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.blindcast.dev/#organization\",\"name\":\"BlindCast\",\"url\":\"https://docs.blindcast.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/stillwaterstudio/gwkQ_H6ySS15AoKG/logo/light.svg?fit=max\u0026auto=format\u0026n=gwkQ_H6ySS15AoKG\u0026q=85\u0026s=8d7ce2337dcfa5512cbd46720cb22051\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.blindcast.dev#website\",\"name\":\"BlindCast\",\"url\":\"https://docs.blindcast.dev\",\"publisher\":{\"@id\":\"https://docs.blindcast.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.blindcast.dev/cli/keygen#webpage\",\"url\":\"https://docs.blindcast.dev/cli/keygen\",\"name\":\"blindcast keygen\",\"description\":\"Generate a master key and salt for encrypting video content. Store these securely — losing them means losing access to all encrypted content.\",\"dateModified\":\"2026-02-27T03:01:01.479Z\",\"isPartOf\":{\"@id\":\"https://docs.blindcast.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.blindcast.dev/cli/keygen#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.blindcast.dev/cli/keygen#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"CLI\",\"item\":\"https://docs.blindcast.dev/cli/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"blindcast keygen\",\"item\":\"https://docs.blindcast.dev/cli/keygen\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.blindcast.dev/cli/keygen#article\",\"headline\":\"blindcast keygen\",\"name\":\"blindcast keygen\",\"description\":\"Generate a master key and salt for encrypting video content. Store these securely — losing them means losing access to all encrypted content.\",\"url\":\"https://docs.blindcast.dev/cli/keygen\",\"mainEntityOfPage\":{\"@id\":\"https://docs.blindcast.dev/cli/keygen#webpage\"},\"dateModified\":\"2026-02-27T03:01:01.479Z\",\"publisher\":{\"@id\":\"https://docs.blindcast.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.blindcast.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"BlindCast\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"BlindCast\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/cli/keygen.md","siteName":"BlindCast","nav":{"global":null,"groups":[{"group":"Introduction","pages":[{"title":"What is BlindCast?","href":"/introduction/what-is-blindcast"},{"title":"Zero-Knowledge Explained","href":"/introduction/zero-knowledge-explained"},{"title":"Architecture Overview","href":"/introduction/architecture-overview"}]},{"group":"Getting Started","pages":[{"title":"Installation","href":"/getting-started/installation"},{"title":"Quick Start","href":"/getting-started/quick-start"},{"title":"Migrating from Package Imports","href":"/getting-started/migration"}]},{"group":"Server","pages":[{"title":"Server Overview","href":"/server/overview"},{"title":"Docker Setup","href":"/server/docker"},{"title":"Reverse Proxy","href":"/server/reverse-proxy"},{"title":"Content API","href":"/server/content-api"},{"title":"API Keys","href":"/server/api-keys"},{"title":"Admin Dashboard","href":"/server/admin-dashboard"}]},{"group":"Player","pages":[{"title":"Player Overview","href":"/player/overview"},{"title":"Basic Usage","href":"/player/basic-usage"},{"title":"Authentication","href":"/player/authentication"},{"title":"Lease-Based Revocation","href":"/player/leases"},{"title":"API Reference","href":"/player/api-reference"}]},{"group":"CLI","pages":[{"title":"CLI Overview","href":"/cli/overview"},{"title":"blindcast init","description":"Create a sample project with pre-generated HLS segments, a player page, and configuration files. No FFmpeg required.","href":"/cli/init"},{"title":"blindcast keygen","href":"/cli/keygen"},{"title":"blindcast encrypt","description":"Encrypt HLS segments with AES-128-CBC and rewrite the manifest with EXT-X-KEY tags pointing at your key server.","href":"/cli/encrypt"},{"title":"blindcast upload","href":"/cli/upload"},{"title":"blindcast serve","href":"/cli/serve"}]},{"group":"Uploader","pages":[{"title":"Uploader Overview","href":"/uploader/overview"},{"title":"Basic Usage","href":"/uploader/basic-usage"},{"title":"Progress \u0026 Abort","href":"/uploader/progress-and-abort"},{"title":"API Reference","href":"/uploader/api-reference"}]},{"group":"Key Server","pages":[{"title":"Key Server Overview","href":"/key-server/overview"},{"title":"Configuration","href":"/key-server/configuration"},{"title":"Database","href":"/key-server/database"},{"title":"Presign Endpoint","href":"/key-server/presign"},{"title":"Leases \u0026 Revocation","href":"/key-server/leases"}]},{"group":"Serverless","pages":[{"title":"Cloudflare Workers","href":"/serverless/cloudflare-workers"},{"title":"AWS Lambda","href":"/serverless/aws-lambda"}]},{"group":"Going to Production","pages":[{"title":"Production Checklist","href":"/production/checklist"},{"title":"CDN Configuration","href":"/production/cdn"},{"title":"Key Rotation","href":"/production/key-rotation"},{"title":"Monitoring","href":"/production/monitoring"}]},{"group":"Reference","pages":[{"title":"Error Codes","href":"/reference/error-codes"},{"title":"Result Type Pattern","href":"/reference/result-type-pattern"}]}]},"basePath":"","title":"blindcast keygen - BlindCast","deploymentId":"dpl_4dgnk6TA5fUgboKHTvWWyeqm3idh","buildId":"dpl_4dgnk6TA5fUgboKHTvWWyeqm3idh","dynamics":[],"chunks":[]}