×
Log in
Twitter
Gmail
Facebook
.NET Fiddle
and
.NET Academy
shared account
Remember me
Log in
Sign up
or
Reset password
Search Tutorials
Log in
Sign up
About
Twitter
.NET Fiddle
Support
Contact Us
Symmetric Cryptography
Exercise: Create Round Function
< Previous
Next >
Please implement
round function
F
as you see in picture
using System; using System.Text; public class Program { public const uint SECRET = 4294967295; public static void Main() { UInt16 block = 21369; var cipherBlock = F(block); Console.Write(cipherBlock); } public static UInt16 F(UInt16 originalBlock) { UInt16 result = (UInt16) (originalBlock ^ 65535); result = (UInt16) (result << 5); return result; } }
Reset
Verify
Page 6 of 11
< Previous
Next >
Loading packages and dependencies