-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path3379.4cc928be.chunk.js
More file actions
1 lines (1 loc) · 9.17 KB
/
3379.4cc928be.chunk.js
File metadata and controls
1 lines (1 loc) · 9.17 KB
1
"use strict";(self.webpackChunkfezcodex=self.webpackChunkfezcodex||[]).push([[3379],{23379(e,t,s){s.r(t),s.d(t,{default:()=>h});var a=s(9950),r=s(18905),n=s(4422),i=s(48390),l=s(49849),o=s(41563),c=s(44374),d=s(89837),x=s(35951),m=s(80797),p=s(44414);const g=e=>{let{title:t,value:s,onCopy:a}=e;return(0,p.jsxs)("div",{className:"relative group border border-white/10 bg-white/[0.02] p-8 rounded-sm overflow-hidden transition-all hover:border-emerald-500/30",children:[(0,p.jsxs)("div",{className:"flex justify-between items-center mb-4",children:[(0,p.jsx)("span",{className:"font-mono text-[10px] text-emerald-500 font-bold uppercase tracking-widest",children:t}),(0,p.jsx)("button",{onClick:()=>a(s),disabled:!s,className:"text-gray-500 hover:text-white transition-colors disabled:opacity-0",children:(0,p.jsx)(l.t,{size:20,weight:"bold"})})]}),(0,p.jsx)("div",{className:"font-mono text-sm break-all transition-colors duration-500 ".concat(s?"text-white":"text-gray-800"),children:s||"WAITING_FOR_DATA_INPUT..."})]})},h=function(){const[e,t]=(0,a.useState)(""),[s,l]=(0,a.useState)({sha1:"",sha256:"",sha512:""}),{addToast:h}=(0,c.d)(),u=async t=>{if(!e)return"";try{const s=(new TextEncoder).encode(e),a=await crypto.subtle.digest(t,s);return Array.from(new Uint8Array(a)).map(e=>e.toString(16).padStart(2,"0")).join("")}catch(s){return"ERROR_GEN_FAILED"}},f=e=>{e&&navigator.clipboard.writeText(e).then(()=>{h({title:"Success",message:"Digest stored in clipboard."})})};return(0,p.jsxs)("div",{className:"min-h-screen bg-[#050505] text-white selection:bg-emerald-500/30 font-sans",children:[(0,p.jsx)(d.A,{title:"Hash Engine | Fezcodex",description:"Protocol for generating cryptographic digests and data integrity signatures.",keywords:["Fezcodex","hash generator","SHA-1","SHA-256","SHA-512","cryptography","hashing"]}),(0,p.jsxs)("div",{className:"mx-auto max-w-7xl px-6 py-24 md:px-12",children:[(0,p.jsxs)("header",{className:"mb-24",children:[(0,p.jsxs)(r.N_,{to:"/apps",className:"group mb-12 inline-flex items-center gap-2 text-xs font-mono text-gray-500 hover:text-white transition-colors uppercase tracking-[0.3em]",children:[(0,p.jsx)(n.A,{weight:"bold",className:"transition-transform group-hover:-translate-x-1"}),(0,p.jsx)("span",{children:"Applications"})]}),(0,p.jsx)("div",{className:"flex flex-col md:flex-row md:items-end justify-between gap-12",children:(0,p.jsxs)("div",{className:"space-y-4",children:[(0,p.jsx)(m.A,{title:"Hash Engine",slug:"hash",variant:"brutalist"}),(0,p.jsx)("p",{className:"text-xl text-gray-400 max-w-2xl font-light leading-relaxed",children:"Cryptographic digest protocol. Generate unique mathematical signatures to verify data integrity and authenticity."})]})})]}),(0,p.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-12",children:[(0,p.jsx)("div",{className:"lg:col-span-12",children:(0,p.jsxs)("div",{className:"relative border border-white/10 bg-white/[0.02] p-8 md:p-12 rounded-sm overflow-hidden group",children:[(0,p.jsx)("div",{className:"absolute inset-0 opacity-[0.03] pointer-events-none grayscale",children:(0,p.jsx)(x.A,{seed:"Hash Engine"+e.length,className:"w-full h-full"})}),(0,p.jsxs)("div",{className:"relative z-10 space-y-8",children:[(0,p.jsxs)("div",{className:"space-y-4",children:[(0,p.jsxs)("label",{className:"font-mono text-[10px] text-gray-500 uppercase tracking-widest flex items-center gap-2",children:[(0,p.jsx)("span",{className:"h-px w-4 bg-gray-800"})," Source_Data_Stream"]}),(0,p.jsx)("textarea",{className:"w-full h-48 p-8 bg-black/40 border border-white/5 rounded-sm font-mono text-sm leading-relaxed focus:border-emerald-500/50 focus:ring-0 transition-all resize-none shadow-inner",value:e,onChange:e=>t(e.target.value),placeholder:"Insert plaintext sequence for digest generation..."})]}),(0,p.jsxs)("button",{onClick:async()=>{if(!e)return void h({title:"Info",message:"Insert data stream first."});const[t,s,a]=await Promise.all([u("SHA-1"),u("SHA-256"),u("SHA-512")]);l({sha1:t,sha256:s,sha512:a}),h({title:"Verified",message:"Digest generation complete."})},className:"group relative inline-flex items-center gap-4 px-12 py-6 bg-white text-black hover:bg-emerald-400 transition-all duration-300 font-mono uppercase tracking-widest text-sm font-black rounded-sm",children:[(0,p.jsx)(i.o,{weight:"bold",size:24,className:"group-hover:rotate-180 transition-transform duration-500"}),(0,p.jsx)("span",{children:"Map digests"})]})]})]})}),(0,p.jsxs)("div",{className:"lg:col-span-8 space-y-8",children:[(0,p.jsx)(g,{title:"SHA-1",value:s.sha1,onCopy:f}),(0,p.jsx)(g,{title:"SHA-256",value:s.sha256,onCopy:f}),(0,p.jsx)(g,{title:"SHA-512",value:s.sha512,onCopy:f})]}),(0,p.jsxs)("div",{className:"lg:col-span-4 space-y-8",children:[(0,p.jsxs)("div",{className:"border border-white/10 bg-white/[0.02] p-8 rounded-sm",children:[(0,p.jsxs)("h3",{className:"font-mono text-[10px] font-bold text-emerald-500 uppercase tracking-widest mb-10 flex items-center gap-2",children:[(0,p.jsx)(o.Z,{weight:"fill"}),"Integrity_Audit"]}),(0,p.jsxs)("div",{className:"space-y-6 text-[10px] font-mono uppercase tracking-[0.2em] leading-relaxed text-gray-500",children:[(0,p.jsx)("p",{children:"A hash is a one-way mathematical function. Any variation in the source data stream will result in a complete reconstruction of the digest sequence."}),(0,p.jsxs)("div",{className:"pt-6 border-t border-white/5 flex justify-between items-center",children:[(0,p.jsx)("span",{children:"Engine"}),(0,p.jsx)("span",{className:"text-white font-black",children:"Subtle_Crypto_API"})]})]})]}),(0,p.jsx)("div",{className:"p-8 border border-white/10 bg-white/[0.01] rounded-sm",children:(0,p.jsx)("p",{className:"text-[10px] font-mono uppercase tracking-[0.2em] leading-relaxed text-gray-500",children:"Protocol recommendation: Use SHA-256 or higher for sensitive data verification. SHA-1 is preserved for legacy compatibility."})})]})]}),(0,p.jsxs)("footer",{className:"mt-32 pt-12 border-t border-white/10 flex flex-col md:flex-row justify-between items-center gap-6 text-gray-600 font-mono text-[10px] uppercase tracking-[0.3em]",children:[(0,p.jsx)("span",{children:"Fezcodex_Digest_Module_v0.6.1"}),(0,p.jsx)("span",{className:"text-gray-800",children:"HASH_STATE // STABLE"})]})]})]})}},80797(e,t,s){s.d(t,{A:()=>n});var a=s(9950),r=s(44414);const n=e=>{let{title:t,slug:s,breadcrumbs:n,gradient:i=!0,sansFont:l=!1,lightStyle:o=!0,variant:c="default"}=e;const d=n||(s?["fc","apps",s]:[]);return"brutalist"===c?(0,r.jsxs)("div",{className:"flex flex-col gap-2 mb-8",children:[(0,r.jsx)("div",{className:"flex items-center gap-2 font-mono text-[10px] uppercase tracking-[0.3em] text-gray-400",children:d.map((e,t)=>(0,r.jsxs)(a.Fragment,{children:[(0,r.jsx)("span",{className:t===d.length-1?"text-emerald-500 font-bold":"",children:e}),t<d.length-1&&(0,r.jsxs)("span",{className:"text-gray-600 font-bold ",children:[" ","//"]})]},t))}),(0,r.jsx)("h1",{className:"text-4xl md:text-6xl font-black tracking-tighter text-white uppercase leading-none",children:t})]}):(0,r.jsxs)("div",{className:"relative flex flex-col items-center justify-center mb-4 ".concat(l?"font-playfairDisplay":"font-mono"," "),children:[(0,r.jsx)("span",{className:"min-[1376px]:absolute min-[1376px]:left-0 min-[1376px]:top-1/2 min-[1376px]:-translate-y-1/2 text-xl md:text-2xl font-mono font-normal text-gray-500 tracking-tight mb-2 min-[1376px]:mb-0 opacity-75",children:d.map((e,t)=>(0,r.jsxs)(a.Fragment,{children:[(0,r.jsx)("span",{className:t===d.length-1?o?"text-primary-400":"text-rose-800":"",children:e}),t<d.length-1&&(0,r.jsx)("span",{className:"text-gray-700",children:"::"})]},t))}),(0,r.jsx)("h1",{className:"text-4xl md:text-6xl font-black tracking-tighter text-center",children:(0,r.jsx)("span",{className:i?o?"bg-clip-text text-transparent bg-gradient-to-r from-primary-400 to-secondary-400":"bg-clip-text text-transparent bg-gradient-to-r from-pink-800 to-teal-800":"text-white",children:t})})]})}},89837(e,t,s){s.d(t,{A:()=>i});s(9950);var a=s(18905),r=s(44414);const n="https://fezcode.com",i=e=>{let{title:t,description:s,image:i,keywords:l,ogImage:o,twitterImage:c,type:d}=e;const x=(0,a.zy)();if(!t||"Fezcodex"===t||"fezcodex"===t)return null;const m=n+x.pathname,p=x.pathname.startsWith("/apps"),g=i||o||c||(p?"/images/asset/ogtitle-apps.png":"/images/asset/ogtitle.png"),h=g.startsWith("http")?g:n+(g.startsWith("/")?"":"/")+g,u=Array.isArray(l)?l.join(", "):l,f=d||(x.pathname.startsWith("/blog")?"article":"website");return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:t}),(0,r.jsx)("meta",{name:"description",content:s}),u&&(0,r.jsx)("meta",{name:"keywords",content:u}),(0,r.jsx)("meta",{property:"og:title",content:t}),(0,r.jsx)("meta",{property:"og:description",content:s}),(0,r.jsx)("meta",{property:"og:image",content:h}),(0,r.jsx)("meta",{property:"og:url",content:m}),(0,r.jsx)("meta",{property:"og:type",content:f}),(0,r.jsx)("meta",{property:"og:site_name",content:"Fezcodex"}),h.startsWith("https")&&(0,r.jsx)("meta",{property:"og:image:secure_url",content:h}),(0,r.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,r.jsx)("meta",{name:"twitter:title",content:t}),(0,r.jsx)("meta",{name:"twitter:description",content:s}),(0,r.jsx)("meta",{name:"twitter:image",content:h}),(0,r.jsx)("meta",{name:"twitter:url",content:m}),(0,r.jsx)("link",{rel:"canonical",href:m})]})}}}]);