Paper 2021/689

OSHA: A General-purpose One-way Secure Hash Algorithm

Ripon Patgiri


Secure hash functions are widely used cryptographic algorithms to secure diverse attacks. A one-way secure hash function is used in the various cryptographic area, for instance, password protection. However, most of the hash functions provide security based on static parameters and publicly known operations. Therefore, it becomes easier to attack by the attackers because all parameters and operations are predefined. The publicly known parameters and predefined operations make the oracle regenerate the key even though it is a one-way secure hash function. Moreover, the key (sensitive data) is mixed with the predefined constant where an oracle may find a way to discover the key. To address the above issues of the secure hash functions, we propose a novel and one-way secure hash algorithm, OSHA for short, to protect sensitive data against attackers. OSHA depends on a pseudo-random number generator to generate a private key. Moreover, OSHA mixes multiple private keys to generate a hash value. Furthermore, OSHA uses dynamic parameters, which is difficult for adversaries to guess. Unlike conventional secure hash algorithms, OSHA does not depend on fixed constants. It replaces the fixed constant with the private keys. Also, the key is not mixed with the private keys; hence, there is no way to recover and reverse the process for the adversaries.

Available format(s)
Publication info
Preprint. Minor revision.
Secure hash algorithmsHash functionsAttacksCryptanalysisSecurityCryptography
Contact author(s)
ripon @ cse nits ac in
2021-08-18: revised
2021-05-28: received
See all versions
Short URL
Creative Commons Attribution


      author = {Ripon Patgiri},
      title = {OSHA: A General-purpose One-way Secure Hash Algorithm},
      howpublished = {Cryptology ePrint Archive, Paper 2021/689},
      year = {2021},
      note = {\url{}},
      url = {}
Note: In order to protect the privacy of readers, does not use cookies or embedded third party content.