Thanks to visit codestin.com
Credit goes to github.com

Skip to content

mgbowe1/FP1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

My Library: SHA

I wrote a function to hash a list of byte strings. It returns a list of the hashed strings.

#lang racket
(require sha)
(define (hash-list lst)
 (if (null? lst)
  '()
  (cons (sha256 (car lst)) (hash-list (cdr lst)))))

I also wrote a function to consume a hashed list and return a list of the sums of their byte values. Here is a screenshot of my output from a basic example.

figure1

About

Exploration 1

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Racket 100.0%