locked
How do I make a block cipher in VB.NET?

    Question

  • Ok so I've read up on encryption and decryption and how it all works but I still don't understand how the ciphering process works, I understand that a bit amount is needed to input certain characters into the block cipher, but I don't see how the bits become encrypted.  If that makes sense?
    Wednesday, July 15, 2009 11:38 AM

Answers

All replies

  • encryptyon can be extremly simple or extreamly easy... Encryption is just an algorithem with a curten input givs an output...  And good  encryption is usally strongly tied to prime numbers...

    A simple algorithem can just be an enum

    Enum Tab
    A
    B
    C
    end enum

    then the numbers 123 will be ABC


    And one thing:
    If that makes sense? Im taking a WAG at this....
    Kenneth
    Wednesday, July 15, 2009 11:40 PM
  • Hi Sam V,

    Please refer to the following articles about encryption and decryption.

    .NET Security and Cryptography
    http://proquestcombo.safaribooksonline.com/013100851X

    RSACryptoServiceProvider Class
    http://msdn.microsoft.com/en-us/library/system.security.cryptography.
    rsacryptoserviceprovider.aspx

    Cryptography in .NET
    http://www.developer.com/net/net/article.php/1548761

    DSACryptoServiceProvider Class
    http://msdn.microsoft.com/en-us/library/system.security.cryptography.
    dsacryptoserviceprovider.aspx

    Cryptography in Microsoft.NET Part I: Encryption
    http://www.c-sharpcorner.com/UploadFile/gsparamasivam/CryptEncryption11282
    005061028AM/CryptEncryption.aspx

    Cryptography in Microsoft.NET Part II: Digital Envelop and Digital Signatures
    http://www.c-sharpcorner.com/UploadFile/Gowri%20S%20Paramasivam/Cryptography2
    11242005003308AM/Cryptography2.aspx

    Best regards,
    Riquel
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Friday, July 17, 2009 1:47 AM
  • Hi,

    I have written an article that describes the DES encryption process.

    An Inside Look At Symmetric Encryption
    http://www.dsmyth.net/wiki/AnInsideLookAtSymmetricEncryption.ashx
    www.dsmyth.net | www.dsmyth.net/wiki
    Friday, July 17, 2009 8:26 AM
  • I'm guessing that the sub key is randomly generated, and then the mangler generates random cipher text based of the plain text and the sub key.  Which makes it hard for me to understand how one is to decrypt the cipher text if everything, other than the original plain text is random. =/
    Monday, July 20, 2009 12:25 PM
  • Hi SamV,

    No I believe the round key is generated from the main key. Although I cannot remember how.

    You are right if the round key was randomly generated then it would be impossible to decrypt anything.

    http://www.amazon.com/Network-Security-Communication-Computer-Networking/dp/0130460192
    www.dsmyth.net | www.dsmyth.net/wiki
    Tuesday, July 21, 2009 8:19 AM