<?xml version="1.0" encoding="iso-8859-9" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Clomosy | Forum : Hashleme nasıl yapılır</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Clomosy ile de&#287;i&#351;ken kullan&#305;m&#305; : Hashleme nasıl yapılır]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 15 Apr 2026 04:34:00 +0000</pubDate>
  <lastBuildDate>Thu, 25 Sep 2025 10:05:50 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.07</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forum.clomosy.com.tr/RSS_post_feed.asp?TID=1201</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Clomosy | Forum]]></title>
   <url>https://forum.clomosy.com.tr/forum_images/logo.png</url>
   <link>https://forum.clomosy.com.tr/</link>
  </image>
  <item>
   <title><![CDATA[Hashleme nasıl yapılır : // Giri&#351; metninin SHA-3 hash&amp;#039;ini...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1201&amp;PID=2565#2565</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=344">M-Guney</a><br /><strong>Konu:</strong> 1201<br /><strong>Gönderim Zamanı:</strong> 25&nbsp;Eylül&nbsp;2025 Saat 10:05<br /><br /><div>&nbsp; &nbsp; &nbsp; // Giriş metninin SHA-3 hash'ini oluşturun</div><div>&nbsp; &nbsp; &nbsp; SHA3Hash = Crypto.SHA3Hash.Hash(GirisMetni);</div><div>&nbsp; &nbsp; &nbsp; Memo1.Lines.Add('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~');</div><div>&nbsp; &nbsp; &nbsp; Memo1.Lines.Add('SHA-3 Hash (tsha modu):');</div><div>&nbsp; &nbsp; &nbsp; Memo1.Lines.Add(SHA3Hash);</div><div><br>Hashleyip veritabanına eklediğim ile editin hashlenmiş halinin aynı olduğu kontrolünü Clomosy de yapmayı düşünüyorum veri gizliliği için fakat hashlediğim bir veriyi nasıl decrypt edeceğimi bulamadım.<br>Detaylı cevabınız için teşekkür ederim.</div>]]>
   </description>
   <pubDate>Thu, 25 Sep 2025 10:05:50 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1201&amp;PID=2565#2565</guid>
  </item> 
  <item>
   <title><![CDATA[Hashleme nasıl yapılır : Merhabalar,A&#351;a&#287;&#305;da TCLCrypto kullan&#305;m&#305;...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1201&amp;PID=2564#2564</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=101">ztashia</a><br /><strong>Konu:</strong> 1201<br /><strong>Gönderim Zamanı:</strong> 25&nbsp;Eylül&nbsp;2025 Saat 09:18<br /><br />Merhabalar,<div>Aşağıda TCLCrypto kullanımı örneği vardır. Bu Component ile Hash'leme yapabilirsiniz.</div><div><br></div><div>---</div><div><div>var</div><div>MyForm:TCLForm;</div><div>Memo1 : TclMemo;</div><div>Crypto: TCLCrypto;</div><div>GirisMetni: string;</div><div>SifrelenmisMetin,</div><div>CozumlenmisMetin,</div><div>SHA3Hash, SHA2Hash, SHA3OzelHash: string;</div><div>IVOznek, AnahtarOznek, HexCikti, HamCikti: string;&nbsp;</div><div>&nbsp;user,scopes:string;</div><div>{</div><div>MyForm = TCLForm.Create(Self);</div><div><br></div><div>Memo1 = MyForm.AddNewMemo(MyForm,'Memo1','');</div><div>Memo1.Align = alClient;</div><div><br></div><div>&nbsp; // AES Nedir?</div><div>&nbsp; // AES (Advanced Encryption Standard), simetrik bir şifreleme algoritmasıdır.</div><div>&nbsp; // Veriyi güvenli bir şekilde şifrelemek için bir anahtar kullanır. Genellikle</div><div>&nbsp; // 128, 192 veya 256 bit anahtar uzunlukları ile çalışır.</div><div><br></div><div>&nbsp; // SHA-2 Nedir?</div><div>&nbsp; // SHA-2 (Secure Hash Algorithm 2), kriptografik bir hash algoritmasıdır.</div><div>&nbsp; // Veri bütünlüğünü sağlamak ve kimlik doğrulama için kullanılır. 256 ve 512 bit</div><div>&nbsp; // gibi farklı hash uzunlukları sunar.</div><div><br></div><div>&nbsp; // SHA-3 Nedir?</div><div>&nbsp; // SHA-3, SHA-2'nin gelişmiş bir versiyonudur. Modern güvenlik ihtiyaçlarını</div><div>&nbsp; // karşılamak için tasarlanmıştır. TshA ve TxOF modlarında çalışabilir.</div><div><br></div><div><br></div><div>&nbsp; // Define the input text to be encrypted and hashed</div><div>&nbsp; GirisMetni = 'TestText';</div><div><br></div><div>&nbsp; // Instantiate the cryptographic library object</div><div>&nbsp; Crypto = TCLCrypto.Create;</div><div>&nbsp; try</div><div>&nbsp; &nbsp; try</div><div>&nbsp; &nbsp; &nbsp; // Kullanıcı tanımlı IV ve anahtarla AES Şifreleme Yapılandırması</div><div>&nbsp; &nbsp; &nbsp; Crypto.AES.AType = atcbc;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // AES Cipher Block Chaining (CBC) modunu kullan</div><div>&nbsp; &nbsp; &nbsp; Crypto.AES.KeyLength = kl256;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Anahtar uzunluğunu 256 bit olarak ayarla</div><div>&nbsp; &nbsp; &nbsp; Crypto.AES.OutputFormat = base64;&nbsp; &nbsp; &nbsp; // Şifrelenmiş metni Base64 formatında çıktı</div><div>&nbsp; &nbsp; &nbsp; Crypto.AES.PaddingMode = PKCS7;&nbsp; &nbsp; &nbsp; &nbsp; // Blok tamamlanması için PKCS7 dolgu modunu kullan</div><div>&nbsp; &nbsp; &nbsp; Crypto.AES.Unicode = yesUni;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// Unicode desteğini etkinleştir</div><div>&nbsp; &nbsp; &nbsp; Crypto.AES.IVMode = userdefined; // Kullanıcı tanımlı Başlatma Vektörü (IV) kullan</div><div>&nbsp; &nbsp; &nbsp; Crypto.AES.IV = 'BuBirIVnumarasii';&nbsp; &nbsp; // IV'yi tanımlayın</div><div>&nbsp; &nbsp; &nbsp; Crypto.AES.Key = 'BuBirKeyDirHaberinizOlsunTamamMi'; // Şifreleme anahtarını tanımlayın</div><div><br></div><div>&nbsp; &nbsp; &nbsp; // AES kullanarak giriş metnini şifreleyin</div><div>&nbsp; &nbsp; &nbsp; SifrelenmisMetin = Crypto.AES.Encrypt(GirisMetni);</div><div>&nbsp; &nbsp; &nbsp; Memo1.Lines.Text = 'AES Şifrelenmiş Metin (CBC Modu):';</div><div>&nbsp; &nbsp; &nbsp; Memo1.Lines.Add(SifrelenmisMetin);</div><div>&nbsp; &nbsp; &nbsp; Memo1.Lines.Add('~~~~~~~~~~~Cozumleme~~~~~~~~~~~~~~~~~~~~~');</div><div>&nbsp; &nbsp; &nbsp; CozumlenmisMetin = Crypto.AES.DecryptStr(SifrelenmisMetin);</div><div>&nbsp; &nbsp; &nbsp; Memo1.Lines.Add(CozumlenmisMetin);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; // Rastgele IV ile AES Şifreleme Yapılandırması</div><div>&nbsp; &nbsp; &nbsp; Crypto.AES.IVMode = rand;&nbsp; &nbsp; &nbsp; // Rastgele bir IV kullan</div><div>&nbsp; &nbsp; &nbsp; IVOznek = Crypto.AES.Encrypt(GirisMetni);</div><div>&nbsp; &nbsp; &nbsp; Memo1.Lines.Add('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~');</div><div>&nbsp; &nbsp; &nbsp; Memo1.Lines.Add('AES Şifrelenmiş Metin (Rastgele IV):');</div><div>&nbsp; &nbsp; &nbsp; Memo1.Lines.Add(IVOznek);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; // ECB modunda AES Şifreleme</div><div>&nbsp; &nbsp; &nbsp; Crypto.AES.AType = atECB;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // ECB moduna geçiş yap</div><div>&nbsp; &nbsp; &nbsp; AnahtarOznek = Crypto.AES.Encrypt(GirisMetni);</div><div>&nbsp; &nbsp; &nbsp; Memo1.Lines.Add('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~');</div><div>&nbsp; &nbsp; &nbsp; Memo1.Lines.Add('AES Şifrelenmiş Metin (ECB Modu):');</div><div>&nbsp; &nbsp; &nbsp; Memo1.Lines.Add(AnahtarOznek);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; // Şifrelenmiş metni Hexadecimal olarak çıktı</div><div>&nbsp; &nbsp; &nbsp; Crypto.AES.OutputFormat = hexa;&nbsp; &nbsp; &nbsp; &nbsp; // Çıktı formatını hexadecimal olarak değiştir</div><div>&nbsp; &nbsp; &nbsp; HexCikti = Crypto.AES.Encrypt(GirisMetni);</div><div>&nbsp; &nbsp; &nbsp; Memo1.Lines.Add('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~');</div><div>&nbsp; &nbsp; &nbsp; Memo1.Lines.Add('AES Şifrelenmiş Metin (Hexadecimal Çıktı):');</div><div>&nbsp; &nbsp; &nbsp; Memo1.Lines.Add(HexCikti);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; // Şifrelenmiş metni Ham İkili olarak çıktı</div><div>&nbsp; &nbsp; &nbsp; Crypto.AES.OutputFormat = raw;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// Çıktı formatını ham ikili olarak değiştir</div><div>&nbsp; &nbsp; &nbsp; HamCikti = Crypto.AES.Encrypt(GirisMetni);</div><div>&nbsp; &nbsp; &nbsp; Memo1.Lines.Add('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~');</div><div>&nbsp; &nbsp; &nbsp; Memo1.Lines.Add('AES Şifrelenmiş Metin (Ham Çıktı):');</div><div>&nbsp; &nbsp; &nbsp; Memo1.Lines.Add(HamCikti);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; // SHA-3 Hash Yapılandırması (tsha modu)</div><div>&nbsp; &nbsp; &nbsp; Crypto.SHA3Hash.AType = tsha;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // tsha modunda SHA-3 hash algoritmasını kullan</div><div>&nbsp; &nbsp; &nbsp; Crypto.SHA3Hash.OutputFormat = base64; // Hash'i Base64 formatında çıktı</div><div>&nbsp; &nbsp; &nbsp; Crypto.SHA3Hash.HashSizeBits = 512;&nbsp; &nbsp; // Hash boyutunu 512 bit olarak ayarla</div><div>&nbsp; &nbsp; &nbsp; Crypto.SHA3Hash.Version = 512;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// SHA-3 versiyonunu ayarla (tsha modunda kullanıcı tarafından ayarlanamaz)</div><div><br></div><div>&nbsp; &nbsp; &nbsp; // Giriş metninin SHA-3 hash'ini oluşturun</div><div>&nbsp; &nbsp; &nbsp; SHA3Hash = Crypto.SHA3Hash.Hash(GirisMetni);</div><div>&nbsp; &nbsp; &nbsp; Memo1.Lines.Add('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~');</div><div>&nbsp; &nbsp; &nbsp; Memo1.Lines.Add('SHA-3 Hash (tsha modu):');</div><div>&nbsp; &nbsp; &nbsp; Memo1.Lines.Add(SHA3Hash);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; // SHA-3 Hash Yapılandırması (txof modu)</div><div>&nbsp; &nbsp; &nbsp; Crypto.SHA3Hash.AType = txof;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // txof modunda SHA-3 hash algoritmasını kullan</div><div>&nbsp; &nbsp; &nbsp; Crypto.SHA3Hash.OutputFormat = base64; // Hash'i Base64 formatında çıktı</div><div>&nbsp; &nbsp; &nbsp; Crypto.SHA3Hash.HashSizeBits = 64;&nbsp; &nbsp; &nbsp;// Özel hash boyutunu ayarla (8'in katı olmalı)</div><div>&nbsp; &nbsp; &nbsp; Crypto.SHA3Hash.Version = 256;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// txof modunda kullanıcı tarafından ayarlanabilir versiyon</div><div><br></div><div>&nbsp; &nbsp; &nbsp; // Giriş metninin SHA-3 özel hash'ini oluşturun</div><div>&nbsp; &nbsp; &nbsp; SHA3OzelHash = Crypto.SHA3Hash.Hash(GirisMetni);</div><div>&nbsp; &nbsp; &nbsp; Memo1.Lines.Add('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~');</div><div>&nbsp; &nbsp; &nbsp; Memo1.Lines.Add('SHA-3 Hash (txof modu):');</div><div>&nbsp; &nbsp; &nbsp; Memo1.Lines.Add(SHA3OzelHash);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; // SHA-2 Hash Yapılandırması</div><div>&nbsp; &nbsp; &nbsp; Crypto.SHA2Hash.OutputFormat = base64; // Hash'i Base64 formatında çıktı</div><div>&nbsp; &nbsp; &nbsp; Crypto.SHA2Hash.HashSizeBits = 512;&nbsp; &nbsp; // Hash boyutunu 512 bit olarak ayarla</div><div><br></div><div>&nbsp; &nbsp; &nbsp; // Giriş metninin SHA-2 hash'ini oluşturun</div><div>&nbsp; &nbsp; &nbsp; SHA2Hash = Crypto.SHA2Hash.Hash(GirisMetni);</div><div>&nbsp; &nbsp; &nbsp; Memo1.Lines.Add('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~');</div><div>&nbsp; &nbsp; &nbsp; Memo1.Lines.Add('SHA-2 Hash:');</div><div>&nbsp; &nbsp; &nbsp; Memo1.Lines.Add(SHA2Hash);</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; user = 'reader';</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; Crypto.JWT.SetClaim('user', user);</div><div>&nbsp; &nbsp; &nbsp; Crypto.JWT.SetClaim('admin', user == 'admin');</div><div><br></div><div>&nbsp; &nbsp; &nbsp; Scopes = 'reader';</div><div>&nbsp; &nbsp; &nbsp; if ((User == 'admin') || (User == 'writer'))</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Scopes = Scopes + ' writer';</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; Crypto.JWT.SetClaim('scope', Scopes);</div><div>&nbsp; &nbsp; &nbsp; Memo1.Lines.Add('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~');</div><div>&nbsp; &nbsp; &nbsp; Memo1.Lines.Add('JWT:');</div><div>&nbsp; &nbsp; &nbsp; Memo1.Lines.Add(Crypto.JWT.CompactToken('super_secret_0123456789_0123456789', 256));</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; except&nbsp;</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Unknown Error');</div><div>&nbsp; &nbsp; }</div><div>&nbsp; finally</div><div>&nbsp; &nbsp; Crypto.Free;</div><div>&nbsp; }</div><div><br></div><div>MyForm.Run;</div><div>}</div></div><div>---</div>]]>
   </description>
   <pubDate>Thu, 25 Sep 2025 09:18:22 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1201&amp;PID=2564#2564</guid>
  </item> 
  <item>
   <title><![CDATA[Hashleme nasıl yapılır : Ms Server da username ve password_hash...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1201&amp;PID=2563#2563</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=344">M-Guney</a><br /><strong>Konu:</strong> 1201<br /><strong>Gönderim Zamanı:</strong> 24&nbsp;Eylül&nbsp;2025 Saat 18:11<br /><br />Ms Server da username ve password_hash kullanacaktım fakat Clomosy de passwordu nasıl hashleyeceğimi bilmiyorum.<br><div>void AddRole{</div><div>// Put</div><div>&nbsp;clRest.BaseURL = 'http://BenimIP:3000/addrole';</div><div>&nbsp;clRest.Accept = 'application/json';</div><div>&nbsp;clRest.Method = rmPUT;</div><div>&nbsp;clRest.AddBody('{"name": "'+editRoleName.Text+'"}','application/json');</div><div>&nbsp;//clRest.AddHeader('Content-Type','application/json');</div><div>&nbsp;clRest.Execute;</div><div>&nbsp;ShowMessage(clRest.Response);</div><div>}<br>bu kısımda benzer bir şekilde Login işlemini Post olarak rest api ye istek atmak istiyorum. Eğer ki olmaz ise node js deki apimde mi hashlemem gerekiyor ya da aes ile şifre alınan şifreyi decrypt edip yazılan şifrenin encrypt haliyle aynı mı diye kontrol etmem gerekir.</div>]]>
   </description>
   <pubDate>Wed, 24 Sep 2025 18:11:11 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1201&amp;PID=2563#2563</guid>
  </item> 
 </channel>
</rss>