Click here to Skip to main content
15,887,812 members
Home / Discussions / C#
   

C#

 
QuestionDrag and drop items between two listViews ? Pin
Member 245846730-Mar-17 16:57
Member 245846730-Mar-17 16:57 
AnswerRe: Drag and drop items between two listViews ? Pin
Mycroft Holmes30-Mar-17 17:15
professionalMycroft Holmes30-Mar-17 17:15 
QuestionWhat is the difference between hashing or encryption a data Pin
Tridip Bhattacharjee30-Mar-17 0:09
professionalTridip Bhattacharjee30-Mar-17 0:09 
AnswerRe: What is the difference between hashing or encryption a data Pin
Chris Quinn30-Mar-17 0:24
Chris Quinn30-Mar-17 0:24 
GeneralRe: What is the difference between hashing or encryption a data Pin
Tridip Bhattacharjee30-Mar-17 1:52
professionalTridip Bhattacharjee30-Mar-17 1:52 
GeneralRe: What is the difference between hashing or encryption a data Pin
Chris Quinn30-Mar-17 2:30
Chris Quinn30-Mar-17 2:30 
GeneralRe: What is the difference between hashing or encryption a data Pin
Eddy Vluggen30-Mar-17 8:44
professionalEddy Vluggen30-Mar-17 8:44 
GeneralRe: What is the difference between hashing or encryption a data Pin
OriginalGriff30-Mar-17 8:57
mveOriginalGriff30-Mar-17 8:57 
Most of them.
Try this simple one: add each byte of the input stream together, storing the result in a byte:
C#
byte hash = 0;
foreach (byte b in bytes)
   {
   hash += b;
   }
If you feed this any two bytes, can you tell from the result exactly what two bytes you started with?
If you think you can, here are some examples: 123, 42, 0, 122
What two bytes values did I start with in each case? You get one guess. There will be a significant prize if you - and you alone - get it on the first attempt.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

AnswerHelp Vampire PinPopular
Pete O'Hanlon30-Mar-17 0:44
mvePete O'Hanlon30-Mar-17 0:44 
GeneralRe: Help Vampire Pin
Afzaal Ahmad Zeeshan30-Mar-17 9:42
professionalAfzaal Ahmad Zeeshan30-Mar-17 9:42 
GeneralRe: Help Vampire Pin
Pete O'Hanlon30-Mar-17 21:45
mvePete O'Hanlon30-Mar-17 21:45 
AnswerRe: What is the difference between hashing or encryption a data Pin
OriginalGriff30-Mar-17 0:54
mveOriginalGriff30-Mar-17 0:54 
AnswerRe: What is the difference between hashing or encryption a data Pin
Dave Kreskowiak30-Mar-17 2:55
mveDave Kreskowiak30-Mar-17 2:55 
AnswerRe: What is the difference between hashing or encryption a data Pin
Gerry Schmitz30-Mar-17 7:07
mveGerry Schmitz30-Mar-17 7:07 
GeneralRe: What is the difference between hashing or encryption a data Pin
Richard Deeming30-Mar-17 7:11
mveRichard Deeming30-Mar-17 7:11 
GeneralRe: What is the difference between hashing or encryption a data Pin
Gerry Schmitz30-Mar-17 7:29
mveGerry Schmitz30-Mar-17 7:29 
GeneralRe: What is the difference between hashing or encryption a data Pin
Richard Deeming30-Mar-17 7:52
mveRichard Deeming30-Mar-17 7:52 
GeneralRe: What is the difference between hashing or encryption a data Pin
Gerry Schmitz30-Mar-17 8:01
mveGerry Schmitz30-Mar-17 8:01 
GeneralRe: What is the difference between hashing or encryption a data Pin
Richard Deeming30-Mar-17 8:06
mveRichard Deeming30-Mar-17 8:06 
GeneralRe: What is the difference between hashing or encryption a data Pin
Gerry Schmitz30-Mar-17 8:16
mveGerry Schmitz30-Mar-17 8:16 
GeneralRe: What is the difference between hashing or encryption a data Pin
Richard Deeming30-Mar-17 8:23
mveRichard Deeming30-Mar-17 8:23 
GeneralRe: What is the difference between hashing or encryption a data Pin
Gerry Schmitz30-Mar-17 9:05
mveGerry Schmitz30-Mar-17 9:05 
GeneralRe: What is the difference between hashing or encryption a data Pin
Richard Deeming30-Mar-17 9:12
mveRichard Deeming30-Mar-17 9:12 
GeneralRe: What is the difference between hashing or encryption a data Pin
Gerry Schmitz30-Mar-17 9:25
mveGerry Schmitz30-Mar-17 9:25 
GeneralRe: What is the difference between hashing or encryption a data Pin
ZurdoDev30-Mar-17 10:08
professionalZurdoDev30-Mar-17 10:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.