How to resolve the algorithm SHA-256 step by step in the Lasso programming language

Published on 12 May 2024 09:40 PM

How to resolve the algorithm SHA-256 step by step in the Lasso programming language

Table of Contents

Problem Statement

SHA-256 is the recommended stronger alternative to SHA-1. See FIPS PUB 180-4 for implementation details. Either by using a dedicated library or implementing the algorithm in your language, show that the SHA-256 digest of the string "Rosetta code" is: 764faf5c61ac315f1497f9dfa542713965b785e5cc2f707d6468d7d1124cdfcf

Let's start with the solution:

Step by Step solution about How to resolve the algorithm SHA-256 step by step in the Lasso programming language

Source code in the lasso programming language

// The following will return a list of all the cipher 
// algorithms supported by the installation of Lasso
cipher_list

// With a -digest parameter the method will limit the returned list
// to all of the digest algorithms supported by the installation of Lasso
cipher_list(-digest)

// return the SHA-256 digest. Dependant on SHA-256 being an available digest method
cipher_digest('Rosetta Code', -digest='SHA-256',-hex=true)


  

You may also check:How to resolve the algorithm Arithmetic-geometric mean step by step in the LFE programming language
You may also check:How to resolve the algorithm Respond to an unknown method call step by step in the Python programming language
You may also check:How to resolve the algorithm Mayan numerals step by step in the Amazing Hopper programming language
You may also check:How to resolve the algorithm Ramanujan's constant step by step in the Wren programming language
You may also check:How to resolve the algorithm Loops/Infinite step by step in the K programming language