get sha-256 value from a file

i use this code to get the MD5 hash of a file (extracted from this post)

[code]dim mdfive as new MD5Digest
dim bs as BinaryStream = BinaryStream.Open( f )
while not bs.EOF
dim chunk as string = bs.Read( 1000000 )
mdfive.Process chunk
wend

dim hash as string = EncodeHex( mdfive.Value )[/code]

how do i get the sha-256 value from a file?

Without a plugin, get my free M_Crypto project:

https://github.com/ktekinay/M_Crypto