SHA-256: Difference between revisions

Content added Content deleted
(→‎{{header|Perl 6}}: using Blob instead of Buf)
(→‎{{header|Lasso}}: Adding Lasso example of SHA-256 encryption)
Line 246:
=={{header|Java}}==
The solution to this task would be a small modification to [[MD5#Java|MD5]] (replacing "MD5" with "SHA-256" as noted [http://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#MessageDigest here]).
 
 
=={{header|Lasso}}==
Lasso supports the ciphers as supplied by the operating system.
 
SHA-256 is not supplied by all operating systems by default.
 
Use the cipher_list method to view these algorithms.
 
<lang Lasso>// 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)
</lang>
 
=={{header|Mathematica}}==