import { CryptoEffects , stringToArrayBuffer } from '../common' ; import { generateShaHash } from './generateShaHash' ; export const generateHashFromString = ( str ) : CryptoEffects < unknown , ArrayBuffer > => generateShaHash ( 256 , stringToArrayBuffer ( str ) ) ;