MeowScript icon indicating copy to clipboard operation
MeowScript copied to clipboard

Standard Library: hash

Open AlenVelocity opened this issue 2 years ago • 3 comments

Ref: https://github.com/Synthesized-Infinity/Ethereal/blob/main/src/std_library/hash.rs

AlenVelocity avatar Oct 01 '23 06:10 AlenVelocity

Hey @AlenVelocity, could you please describe this issue in detail.

akhilender-bongirwar avatar Oct 01 '23 06:10 akhilender-bongirwar

Hi There. Thank you for your pawsome interest in contributing to Meowscript! Here's what we're hissing... um, we mean, hoping for:

Existing Hashing Module Reference

You can take a sneak peek at the original implementation of a hashing module done by @sheIItear for Ethereal. This implementation might help you get a pawhold on the task at hand. Here’s where you can find it:

Ethereal Hashing Module Implementation

Hashing Module Specification

We need a simple yet purr-fect hashing module that implements the following basic hashing methods:

We're looking to implement some of the tried-and-true hashing algorithms in a way that stays true to Meowscript's quirky, cat-centric style, something like:

  1. SHA-Purr256: Implementation of the SHA-256 algorithm.
  2. SHA-Hiss512: The SHA-512 algorithm,.
  3. MD-Furr5: An implementation of the classic MD5 algorithm.

Implementation Paw-ticulars

  • Ensure your hashing module is written in a way that's consistent with Meowscript's unique syntax and cat-tastic style. Don't fur-get to replace common terms with our feline-inspired keywords!
  • Your module should be able to easily integrate with the existing Meowscript interpurrter and standard library.
  • Feel free to add any additional cat-themed hashing methods if you come up with something clever and useful!

Testing Your Code

  • Remember, it's impurrtant to catch any bugs now before they become cat-astrophes later!

AlenVelocity avatar Oct 01 '23 06:10 AlenVelocity

Rust Crypto: https://github.com/RustCrypto

AlenVelocity avatar Oct 01 '23 07:10 AlenVelocity