DelphiTools

DWS, Profiler and other Pascal tools

Menu
Skip to content
  • Home
  • Sampling Profiler
    • Overview
    • Changelog & Downloads
    • Tips & News
    • Mini-Guide
  • Dev Tools
    • MapFileStats – Delphi MAP file statistics
    • ZJDBGPack
  • DWScript
    • Overview
    • Tips & News
    • DWScript at BitBucket
    • DWScript Downloads
    • Showcase
  • Android
    • glInfo for Android OpenGL info
    • Départements Français
    • Nickel Iron
  • iOS
    • Nickel Iron
  • HTML5
    • L-System Fiddle
    • Nickel Iron
    • WarTrail
  • Links

Tag Archives: Hash

Client-Side Password Hashing

2 comments
January 13, 2017 in Tips.

A lot of the advice on password hashing says that client-side password hashing is not necessary, provided you are using HTTPS or another secure protocol, for instance in

  • Is it worth hashing passwords on the client side?
  • https security – should password be hashed server-side or client-side?
  • Why is client-side hashing of a password so uncommon?

(more…)

New SHA-3 permutation kernel

7 comments
April 19, 2016 in News.

spongeA new kernel for SHA-3 (Keccak) cryptographic hashing has been committed to the DWScript repository.

It is almost 3 times faster than the Pascal version, makes use of MMX asm, and involved an “ad hoc compiler”.
(more…)

Long strings: Hash vs Sorted vs Unsorted

11 comments
March 17, 2015 in Tips.

Hash, IndexOf, Lookup, Performance, Search, Sorted, Stringlong_randomlong_stringsAs a followup to the previous String Lookup: Hash, Sorted or Unsorted here is a look at what happens for longer strings.

When the string you’re searching have more than a dozen characters, and you only have a few hundreds of them, a clear winner emerges.

(more…)

String Lookup: Hash, Sorted or Unsorted ?

7 comments
March 16, 2015 in Tips.

StringLookupShowdownWhen looking up a string, what is the fastest strategy?
A hash map, a sorted list or an unsorted list?

Of course it depends on how many strings you have, but where are the cutoff points?
Here is a quick test, and an interesting tidbit is uncovered…
(more…)

Optimistic Case-Insensitive String Hash

2 comments
February 7, 2015 in Tips.

clockworkA trivial way to turn a case-sensitive String hash function into a case-insensitive one is to to pass a lower-case (or upper-case) version of the String.

However, in our days of Unicode strings, this is not innocuous…

(more…)

String Hashing Shootout

10 comments
August 25, 2014 in Tips.

gearsFollowing a recent post by A. Bouchez about an optimized CRC32 hash, I took it as an opportunity to re-run a small String Hashing Shootout on the worst hash function collision torture test I know: ZIP codes in UTF-16 (Delphi’s default String format).

(more…)

Archives

Smart Mobile Studio

Smart Programmer

BeginEnd.net

Torry's

DelphiPages

Tags

asm beginend Bottleneck cefHtmlSnapshot Command Compiler CPU Debug Delphi Download DWS DWScript FastMM FireMonkey Fractals FreePascal Generics GLScene Hash IDE JavaScript JIT Mandelbrot MAP MapFileStats Multithreading OP4JS Optimization Performance Poll Profiler Real-time RTTI Site SmartMS String SynEdit Templates TIOBE Tips TMonitor Tools Unicode WebServer WordPress

Meta

  • Site Admin
  • Entries / Comments RSS
  • WordPress.org
  • Cookie Policy