Advans Enkripshɔn Stɛndad(AES) . na wan simɛtrik ɛnkripshɔn algɔritm. AES na di industri standad as of naw as i alaw 128 bit, 192 bit ɛn 256 bits ɛnkripshɔn. Simɛtrik ɛnkripshɔn na kwik we yu kɔmpia am wit asimɛtrik ɛnkripshɔn ɛn dɛn kin yuz am na sistɛm dɛn lɛk database sistem. Dis na wan onlayn tul fɔ du AES ɛnkripshɔn ɛn dikripshɔn fɔ ɛni plein-tɛks ɔ paswɔd.
Di tul de gi bɔku we dɛn fɔ ɛnkripshɔn ɛn dikripshɔn lɛk ECB, CBC, CTR, CFB ɛn GCM mɔd. GCM dɛn kin tek am se i sikrit pas CBC mod ɛn bɔku pipul dɛn kin adopt am fɔ in pefɔmɛns.
Fɔ no mɔ bɔt AES ɛnkripshɔn, go dis ɛksplen pan AES Ɛnkripshɔn. Dis dɔŋ ya na di fɔm fɔ tek di input dɛn fɔ di ɛnkripshɔn ɛn dikripshɔn.
Ɛni sikrit ki valyu we yu put, ɔ we wi mek nɔ de na dis sayt, dɛn gi dis tul tru HTTPS URL fɔ mek shɔ se dɛn nɔ go ebul fɔ tif ɛni sikrit ki.
Di men tin dɛn we yu fɔ du
- Simɛtrik Ki Algɔritm: Dɛn kin yuz di sem ki fɔ ɔl tu di enkripshɔn ɛn dikripshɔn.
- Blɔk Sayfa: AES de wok pan fiks-sayz blɔk dɛn fɔ data. Di standad blɔk saiz na 128 bit.
- Ki Lɛngth dɛn: AES sɔpɔt ki lɔng dɛn we na 128, 192, ɛn 256 bit. Di mɔ di ki lɔng, na di mɔ di ɛnkripshɔn strɔng.
- Natin nɔ de fɔ fred: Dɛn kin tek AES as sɔntin we rili sikrit ɛn dɛn kin yuz am bɔku bɔku wan na difrɛn sikyɔriti protɔkɔl ɛn aplikeshɔn dɛn.
AES Enkripshɔn Tɛm & Tɛminɔlɔji dɛn
Fɔ ɛnkripshɔn, yu kin rayt di klin tɛks ɔ paswɔd we yu want fɔ ɛnkript. Naw pik di blɔk sayfa mɔd fɔ ɛnkripshɔn.
Difrɛn Sɔpɔt Mɔd dɛn fɔ AES Ɛnkripshɔn
AES de gi plɛnti mɔd fɔ ɛnkripshɔn lɛk ECB, CBC, CTR, OFB, CFB ɛn GCM mod.
-
ECB(Ilektronik Kɔd Buk) na di simpul ɛnkripshɔn mɔd ɛn i nɔ nid IV fɔ ɛnkripshɔn. Di input plein tɛks go sheb to blɔk ɛn ɛni blɔk go ɛnkript wit di ki we dɛn gi ɛn na dat mek dɛn go ɛnkript di sem plein tɛks blɔk dɛn to di sem sayfa tɛks blɔk dɛn.
-
CBC(Cipher Block Chaining) mod na tin we dɛn rili kɔmɛnt, ɛn na wan advans we fɔ blɔk sayfa ɛnkripshɔn. I nid IV fɔ mek ɛni mɛsej yunik we min se di idɛntik plein tɛks blɔk dɛn de ɛnkript to difrɛn sayfa tɛks blɔk dɛn. So, i de gi mɔ robust ɛnkripshɔn as yu kɔmpia am wit ECB mod, bɔt i slo smɔl as yu kɔmpia am wit ECB mod. If no IV nɔ ɛnta den difɔlt go yuz ya fɔ CBC mod ɛn dat difɔlt to wan ziro-bɛs bayt[16].
-
CTR(Counter) Dɛn kin kɔl CTR mod (CM) bak intaj kɔnta mod (ICM) ɛn sɛgmɛnt intaj kɔnta (SIC) mod. Kɔnta-mɔd de tɔn blɔk sayfa to strim sayfa. CTR mod gɛt di sem kayn kwaliti dɛn we OFB gɛt, bɔt i de alaw bak fɔ gɛt random-akses prɔpati we dɛn de dikripshɔn. CTR mod fayn fɔ wok pan wan maltiprosɛsɔ mashin, usay dɛn kin ɛnkript blɔk dɛn insay paralel.
-
GCM(Galois/Kɔnta Mɔd) . na simɛtrik-ki blɔk sayfa mɔd fɔ ɔpreshɔn we de yuz yunivasal hash fɔ gi ɔthɛntiket ɛnkripshɔn. Dɛn kin tek GCM as mɔ sikrit pas CBC mod bikɔs i gɛt bilt-in ɔthɛntishɔn ɛn intɛgriti chɛk ɛn dɛn de yuz am bɔku bɔku wan fɔ in pefɔmɛns.
Padding we dɛn kin yuz fɔ mek tin dɛn
Fɔ AES mod CBC ɛn ECB, di padding kin bi PKCS5PADDING ɛn NoPadding. Wit PKCS5Padding, wan 16-bayt string go prodyuz 32-bayt autput (di nɛks multiple of 16).
AES GCM PKCS5Padding na wan synonym fɔ NoPadding bikɔs GCM na strimin mod we nɔ nid fɔ padding. Di sayfatɛks na GCM na jɔs lɛk di pleintɛks. So, nopadding na bay difɔlt we dɛn pik.
AES Ki Saiz
Di AES algɔritm gɛt 128-bit blɔk saiz, ilɛksɛf yu ki lɔng na 256, 192 ɔ 128 bit. We simɛtrik sayfa mɔd nid IV, di lɔng we di IV fɔ ikwal to di blɔk saiz fɔ di sayfa. So, yu fɔ yuz IV we gɛt 128 bit (16 bayt) wit AES ɔltɛm.
AES Sikrit Ki
AES de gi 128 bit, 192 bit ɛn 256 bit sikrit ki saiz fɔ ɛnkripshɔn. If yu de pik 128 bit fɔ ɛnkripshɔn, den di sikrit ki fɔ lɔng 16 bit ɛn 24 ɛn 32 bit fɔ 192 ɛn 256 bit fɔ ki saiz. Fɔ ɛgzampul, if di ki saiz na 128, den wan valid sikrit ki fɔ bi 16 karakta i.e., 16*8=128 bit