Jump to content

SHA-256: Difference between revisions

m
BaCon and BBC BASIC moved to the BASIC section.
(Added pure Rust version and marked library version accordingly.)
m (BaCon and BBC BASIC moved to the BASIC section.)
Line 910:
<pre>764faf5c61ac315f1497f9dfa542713965b785e5cc2f707d6468d7d1124cdfcf</pre>
 
=={{header|BaConBASIC}}==
==={{header|BaCon}}===
<syntaxhighlight lang="qbasic">PRAGMA INCLUDE <openssl/sha.h>
PRAGMA LDFLAGS -lcrypto
Line 936 ⟶ 937:
</pre>
 
==={{header|BBC BASIC}}===
====Library====
{{works with|BBC BASIC for Windows}}
<syntaxhighlight lang="bbcbasic"> PRINT FNsha256("Rosetta code")
Line 964 ⟶ 965:
NEXT
= hash$</syntaxhighlight>
{{out}}
'''Output:'''
<pre>
764FAF5C61AC315F1497F9DFA542713965B785E5CC2F707D6468D7D1124CDFCF
</pre>
 
====Native====
{{works with|BBC BASIC for Windows}}
<syntaxhighlight lang="bbcbasic"> REM SHA-256 calculation by Richard Russell in BBC BASIC for Windows
Line 1,095 ⟶ 1,096:
WHILE n# < &80000000 : n# += 2^32 : ENDWHILE
= n#</syntaxhighlight>
{{out}}
'''Output:'''
<pre>
764FAF5C 61AC315F 1497F9DF A5427139 65B785E5 CC2F707D 6468D7D1 124CDFCF
512

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.